@@ 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() {