Idea: release builds don't reuse a cached target folder #43
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Tooling#43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
On the runs that publish a release, build from an empty
target/folder, or restore only cargo's downloaded crates. Don't reuse compiled files from a cache.Why
MagicBeanAdmin/Release's
launcher.ymlrestores~/.cargo/registry/cacheand thetarget/folder beforescripts/package.sh, and saves them afterwards. Cargo checks every downloaded crate againstCargo.lock's checksum, but it doesn't re-check files already compiled intarget/: those go into the release as they are. Whatever can write that cache can put code into a signed release without a commit.Today only the release workflows write that cache, which is right. Making the publishing run not depend on it removes the question entirely, at the cost of a slower build. Longshot's release build may be worth the same look.
Found while checking the download chain for LongshotLauncher issue 379 (nothing wrong was found there).
Done when
A published release is built from its commit, the locked crates and the pinned toolchain only, and the workflow says so.
Will add for stable-only