diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index d43e7952..fd8b9e9f 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -625,6 +625,8 @@ parts: source: https://github.com/sigstore/cosign.git go-importpath: github.com/sigstore/cosign/cmd/cosign source-commit: 33973d078170f586cf27f2cc464844b3f1fa1abb + build-environment: + - GOFLAGS: "$GOFLAGS -modcacherw" override-build: | export GOROOT=/usr/local/go1.17 export PATH="$GOROOT/bin:$PATH"