Skip to content

docker test target: chown instead of chmod, cover /go/ as well#408

Merged
SuperSandro2000 merged 1 commit intomainfrom
docker-test-chown
Nov 12, 2025
Merged

docker test target: chown instead of chmod, cover /go/ as well#408
SuperSandro2000 merged 1 commit intomainfrom
docker-test-chown

Conversation

@majewsky
Copy link
Contributor

It is unclear why we initially opted for chmod 777, but since we run the remainder of this stage as appuser:appgroup, it feels cleaner to me to chown to that user instead.

The addition of /go/ here is intended to fix this error observed in the wild in Limes:

Step 15/27 : RUN cd /src   && git config --global --add safe.directory /src   && make build/cover.out
 ---> Running in f340e685fcd7
go: writing stat cache: open /go/pkg/mod/cache/download/github.com/sapcc/limes/@v/v0.0.0-20251112155133-bda68ff48b83.info241674416.tmp: permission denied

It is unclear why we initially opted for `chmod 777`, but since we run
the remainder of this stage as appuser:appgroup, it feels cleaner to me
to `chown` to that user instead.

The addition of `/go/` here is intended to fix this error observed in
the wild in Limes:

```
Step 15/27 : RUN cd /src   && git config --global --add safe.directory /src   && make build/cover.out
 ---> Running in f340e685fcd7
go: writing stat cache: open /go/pkg/mod/cache/download/github.com/sapcc/limes/@v/v0.0.0-20251112155133-bda68ff48b83.info241674416.tmp: permission denied
```
@SuperSandro2000 SuperSandro2000 merged commit dfd6f25 into main Nov 12, 2025
8 of 9 checks passed
@SuperSandro2000 SuperSandro2000 deleted the docker-test-chown branch November 12, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants