build: fix unintended caching issue

Fixes #1
This commit is contained in:
George Rawlinson 2022-04-27 19:50:27 +12:00
parent 197e8583a2
commit e71b15a0d8
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -36,12 +36,15 @@ for package in "${PACKAGES[@]}"; do
#
# rust - crates
if grep -q "depends = rust\|cargo" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo)
EXTRA_ARGS+=(
--bind-rw /var/cache/cargo/git:/build/.cargo/git
--bind-rw /var/cache/cargo/registry:/build/.cargo/registry
)
fi
# go - modules
if grep -q "depends = go" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go)
EXTRA_ARGS+=(--bind-rw /var/cache/golang/pkg:/build/go/pkg)
fi
# dart - packages