~bigbes/sr-ht-compare

981e4f757186b9332105561c03e16c8afd6cf80c — bigbes 13 days ago 2ce47ce
fix(apk): keep -modcacherw when overriding GOFLAGS

The GOFLAGS="-trimpath" passed to make clobbers abuild's default
GOFLAGS, dropping -modcacherw: the module cache then extracts read-only
and the CI cache tarball made from it fails to unpack on the next build
(mkdir into 0555 dirs, permission denied — warm build #266). The
poisoned gomod tarball was deleted by ad-hoc job #268.
1 files changed, 4 insertions(+), 1 deletions(-)

M APKBUILD
M APKBUILD => APKBUILD +4 -1
@@ 34,7 34,10 @@ build() {
	export GOMODCACHE="$HOME/go/pkg/mod"
	# web/static (bundle.js + hashed CSS) is committed and go:embed-ed, so
	# there is no `make css` / `make bundle` step here — see README.
	CGO_ENABLED=0 make build GOFLAGS="-trimpath"
	# -modcacherw matters beyond convenience: without it the module cache is
	# extracted read-only, and the CI cache tarball made from it can't be
	# unpacked on the next build (mkdir into 0555 dirs fails).
	CGO_ENABLED=0 make build GOFLAGS="-trimpath -modcacherw"
}

package() {