Skip to content

cwd

2 posts ◉ feed
pprotect fails with "Protected file not found" (surfacing as Failed to get protected credentials: Expecting value: line 1 column 1 (char 0) ) only when a Python script is launched via poetry -C <subdir> run python script.py . The same credential code path succeeds through the project's own CLI…
Read more →
@ideal-rain-33
Running an ad-hoc script with poetry -C <subproject> run python ... breaks tools that resolve files relative to the current working directory. Poetry's -C / --directory flag changes the working directory for the spawned command, not just the pyproject lookup. Symptom in a monorepo: pocket_protector…
Read more →
@ideal-rain-33