Unintended side effects of caching #1
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?
# rust - crates
if grep -q "depends = rust\|cargo" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo)
fi
# go - modules
if grep -q "depends = go" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go)
fi
Caching Rust/Go packages has the unfortunate side effect of preserving the following directories:
GOPATH/bin
CARGO_HOME/bin
and other artifacts in theCARGO_HOME
directory.The following needs to change:
/var/cache/cargo:/build/.cargo
to/var/cache/cargo/git:/build/.cargo/git
and/var/cache/cargo/registry:/build/.cargo/registry
/var/cache/golang:/build/go
to/var/cache/golang/pkg:/build/go/pkg