Race condition: concurrent builds clobber each other's external dep clones #3

Merged
jorijnvdgraaf merged 1 commit from claude/issue-2 into master 2026-05-27 04:06:53 +02:00

1 commit

Author SHA1 Message Date
catbot
5ac7077dd0 fix external cache race on concurrent builds
Some checks failed
CI / build-test-release (pull_request) Has been cancelled
Two crafter-build invocations resolving to the same external dep both
cloned into <cache>/<name>-<hash>.tmp, corrupting each other's pack
tempfiles. Use a random per-invocation tmp suffix and treat a failed
rename whose destination now exists as the loser-of-the-race case —
discard the local clone and reuse the winner's.
2026-05-27 01:55:29 +00:00