Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ NAMES = "the command names {}, a file of credentials that must stay out of the t
SEARCHES = "the command searches a folder holding {}, a file of credentials that must stay out of the transcript; search a folder without it"
def env_file_breaches(call: Call, home: str) -> list[Breach]:
def env_file_breaches(call: Call, home: str, env: typing.Mapping[str, str]) -> list[Breach]:
guarded: dict[str, pathlib.Path] = {}
for path in (pathlib.Path(home, CLAUDE_HOME, ".env"), *env_files(pathlib.Path(home))):
for path in (pathlib.Path(home, CLAUDE_HOME, ".env"), *env_files(pathlib.Path(home), env)):
if path.is_file():
# Several configs may name one file: it is checked, and reported, once.
guarded.setdefault(os.path.realpath(path), path)