Race condition when multiple services share the same build repo #33
Loading…
Add table
Add a link
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?
Context
When two services reference the same git repo in their TOML
[build]section (e.g.zinit_openrpcandzinit_httpboth point togeomind_code/zinit.git), their install steps race on the shared git directory.The first install clones the repo, builds, and exits. The second install starts milliseconds later, tries
git fetchon the same directory, and fails with exit 128 (git lock or shallow clone conflict).Impact
Non-blocking — the first install's
make installbuilds the entire workspace, so all binaries are already present. The service starts and runs fine despite the install step failing.Observed
Both services use repo
ssh://git@forge.ourworld.tf/geomind_code/zinit.git.Suggested fix
In
install.rs, when generating install commands: