From c0fb526f33a860d6b904b25773254cfb42831469 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 3 Sep 2025 17:59:12 -0400 Subject: [PATCH 1/2] Fix issue with resolving relative challenge paths during install --- ctfcli/cli/challenges.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index fc34210..bd02a53 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -590,9 +590,7 @@ def install( challenge_instance["state"] = "hidden" click.secho( - f"Installing '{challenge_instance}' (" - f"{challenge_instance.challenge_file_path.relative_to(config.project_path)}" - f") ...", + f"Installing '{challenge_instance}' ({challenge_instance.challenge_file_path}) ...", fg="blue", ) From 89b2cf5f77ab2bcea53874e430160425223a31b0 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 3 Sep 2025 18:05:03 -0400 Subject: [PATCH 2/2] Fix lint --- ctfcli/cli/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index bd02a53..dc9cb14 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -578,7 +578,7 @@ def install( if isinstance(ignore, str): ignore = (ignore,) - config = Config() + _config = Config() remote_challenges = Challenge.load_installed_challenges() failed_installs = []