You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scaffold generate records a ephemeral path in spec.source for remote template sources #2885
# any public git:: or https:// scaffold template repo reproduces this
atmos scaffold generate "git::https://github.com/<org>/<scaffold-template-repo>.git" ./out --defaults
cat ./out/.atmos/scaffold.yaml
spec.source is recorded as an OS temp directory path, e.g.:
Atmos itself deletes that directory immediately after the command finishes:
ls "$(yq '.spec.source' ./out/.atmos/scaffold.yaml)"# ls: /var/folders/.../atmos-scaffold-1234567890: No such file or directory
A local template source (a relative/absolute path, or file://...) does not have this problem — spec.source correctly records the original path in that case.
Expected
spec.source should record the original template source string the user/caller specified — the git::... URL, the bare https://... URL, whatever was passed to atmos scaffold generate/atmos init — not the ephemeral directory Atmos downloaded it into and then deleted.
Impact
.atmos/scaffold.yaml's spec.source/spec.baseRef fields exist specifically to record provenance for future updates. For every remote scaffold template, that provenance is a dangling reference to a directory that no longer exists as soon as generation completes — useless for anything (tooling, --update, or a human) that wants to read it back later to know where the project came from.
Activity
jorrite commentedon Aug 6, 2026
Proposed a fix in #2869 .
osterman commentedon Aug 6, 2026
I agree, this appears to be a bug.
jorrite commentedon Aug 18, 2026
Closing, fixed via #2869.