Unintended side effects of caching #1
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?
# rust - cratesif grep -q "depends = rust\|cargo" <<<"$makepkg_output"; thenEXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo)fi# go - modulesif grep -q "depends = go" <<<"$makepkg_output"; thenEXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go)fiCaching Rust/Go packages has the unfortunate side effect of preserving the following directories:
GOPATH/binCARGO_HOME/binand other artifacts in theCARGO_HOMEdirectory.The following needs to change:
/var/cache/cargo:/build/.cargoto/var/cache/cargo/git:/build/.cargo/gitand/var/cache/cargo/registry:/build/.cargo/registry/var/cache/golang:/build/goto/var/cache/golang/pkg:/build/go/pkg