thockin / go-build-template

A Makefile/Dockerfile example for Go projects.
Apache License 2.0
3.25k stars 432 forks source link

Github Workflow fails but local passes #122

Open alok87 opened 2 months ago

alok87 commented 2 months ago

Same make commands works in local but fails in CI, earlier versions did not have this issue.

go: could not create module cache: mkdir /.cache/gomodcache: permission denied
Run make manifest-list BINS= GO_VERSION=1.22
Unable to find image 'golang:1.22-alpine' locally
1.22-alpine: Pulling from library/golang
...
4f4fb700ef54: Pull complete
Digest: sha256:1a478681b67[10](https://github.com/exmaple/exmaple/actions/runs/10645800240/job/29511967208#step:3:11)01b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3
Status: Downloaded newer image for golang:1.22-alpine
go: could not create module cache: mkdir /.cache/gomodcache: permission denied
make: *** [Makefile:279: manifest-tool] Error 1
thockin commented 2 months ago

Why is it trying to write to / ? Is HOME not set?

thockin commented 2 months ago

Where are you seeing this? The GH actions on this repor are all green.