~bigbes/sr-ht-spec

a93855e6dc08555784023f290b5eb5ed5f830437 — Eugene Blikh 13 days ago 128d729
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 #267). 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
@@ 33,7 33,10 @@ build() {
	# shared scss partials are assembled by CI at ASSETS/scss (no apk ships
	# them).
	make css ASSETS=/usr/share/sourcehut
	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() {