Repository navigation
fix(test): run ctt with TMPDIR=/tmp - #65
Merged
Merged
Conversation
tsvikas
force-pushed
the
fix-ci-lints
branch
from
September 27, 2026 11:29
d138e50 to
dabbd02
Compare
ctt renders from a copy under $TMPDIR, and the generated `just init` runs detect-secrets before ctt normalizes `_src_path` in .copier-answers.yml. On macOS the per-user $TMPDIR (/var/folders/xx/<random>/T) reads as a high-entropy secret, so `just test` failed locally. Linux CI was fine. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GyMoD8tx4oz1bpJ1tEL845
tsvikas
force-pushed
the
fix-ci-lints
branch
from
September 27, 2026 12:11
6ead296 to
3648071
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
just testfailed locally on macOS in every ctt case, at thedetect-secretsstep of the generatedjust init.Cause
ctt (2.5.0 and 3.0.0 alike) renders from a copy under
$TMPDIRand only rewrites_src_pathin.copier-answers.ymlafter the_post_taskshave run. On macOS,$TMPDIRis/var/folders/xx/<random>/T/, and detect-secrets flags that path as a Base64 High Entropy String. On Linux the path is/tmp/ctt-src-xxxx, so CI never hit this.Change
justfile:testrunsTMPDIR=/tmp uv run ctt, with a comment explaining why. Updating copier (9.18.2), ctt (3.0.0) and detect-secrets (1.5.0) did not fix it; the dependency update is in a separate PR.Verification
uv run ctt -t barefails at detect-secrets with the default macOSTMPDIR, on both ctt 3.0.0 and 2.5.0.just testpassesbare. The next case,docs, fails only on zizmor's newself-repositoryaudit, which is a separate PR.🤖 Generated with Claude Code
https://claude.ai/code/session_01GyMoD8tx4oz1bpJ1tEL845