From a93855e6dc08555784023f290b5eb5ed5f830437 Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Wed, 5 Aug 2026 13:51:55 +0300 Subject: [PATCH] fix(apk): keep -modcacherw when overriding GOFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- APKBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APKBUILD b/APKBUILD index 42e72ac6105628909c490cb9cd60abb9912f4e43..ba12ce9cd5acdb3bc762008bc5f9fc44b170d0d4 100644 --- a/APKBUILD +++ b/APKBUILD @@ -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() {