Hi @Ataraxy,
Bug: read-only go-mod-cache breaks build directory cleanup.
After a build, makepkg/yay/paru fail to remove the build directory:
rm: cannot remove '.../src/.go-mod-cache/mvdan.cc/sh/v3@v3.8.0/...': Permission denied
Cause: prepare() runs go mod download without -modcacherw set, so Go writes the module cache read-only by default. Setting GOFLAGS="...-modcacherw" later in build() doesn't help, since the cache was already written read-only during prepare().
Fix: export GOFLAGS="-modcacherw" in prepare() before go mod download, e.g.
export GOMODCACHE="${srcdir}/.go-mod-cache" export GOFLAGS="-modcacherw" go mod download
That way the cache is writable from creation and cleans up normally afterward.
Pinned Comments
Ataraxy commented on 2026-06-20 12:24 (UTC) (edited on 2026-06-20 12:24 (UTC) by Ataraxy)
To skip the LLM checking (which fails closed):