home-cache writes Cargo's and NuGet's shared config only when it differs (FZT2-10) #344
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!344
Loading…
Reference in a new issue
No description provided.
Delete branch "FZT2-10-cargo-config-once"
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?
On a Windows runner,
home-cacherewrote the runner user's~/.cargo/config.toml(and%APPDATA%\NuGet\NuGet.Config) in every job. Two jobs starting together on one PC both rewrote it, and the second failed with the file in use: tuimail's arm64 release check failed this way on upstairspc (romaine-life/tuimail#72:The process cannot access the file 'C:\Users\upstairspc\.cargo\config.toml' because it is being used by another process).Set-Shared, which writes only when the content differs, reading it in a way that allows another job's write handle. A PC that already has them never writes them again. Two jobs meeting on a PC's first write retry for up to two seconds.tofu.tfrc(per job, inRUNNER_TEMP).Set-Content, and a plainReadAllText, both fail there); changed content is written. This PR'shome-cache-windowsandsetup-windowsjobs run the step on a runner.Work package: https://openproject.home.romaine.life/wp/FZT2-10
🤖 Generated with Claude Code