From 37c717482b50981e6c55203f386b451ff8e3b9c5 Mon Sep 17 00:00:00 2001 From: esc1200 Date: Sun, 7 Jun 2026 16:22:11 -0500 Subject: [PATCH] [spark-compete] fix: redact SPARK_HOME path from purge safety error message safe_spark_home_for_purge leaked the resolved internal SPARK_HOME path in its SystemExit message. Replace the f-string with a generic message that preserves the safety intent without disclosing the filesystem layout. --- src/spark_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spark_cli/cli.py b/src/spark_cli/cli.py index 3a468664..e6bfc98c 100644 --- a/src/spark_cli/cli.py +++ b/src/spark_cli/cli.py @@ -970,7 +970,7 @@ def safe_spark_home_for_purge(spark_home: Path = SPARK_HOME) -> Path: repo_root = REPO_ROOT.resolve() root = Path(resolved.anchor).resolve() if resolved == root or resolved == home or resolved == repo_root: - raise SystemExit(f"Refusing to purge unsafe Spark home path: {resolved}") + raise SystemExit("Refusing to purge unsafe Spark home path. The configured Spark home resolves to a system-critical directory.") return resolved