Closed
Description
Hi! I am trying to install golangci-lint in a Go 1.12.10 debian image. When upgrading to 1.19.1 I am seeing errors trying to change ownership during install. Googling around suggests there is a tar command running without --no-same-owner.
I cannot replicate this locally because I must have more permissive Docker daemon privileges set up. But currently I'm unable to use 1.19.1 in a CI environment. 1.17.1 did not have this issue.
Step 1/3 : FROM golang:1.12.10
--
| 1.12.10: Pulling from library/golang
| 4a56a430b2ba: Pull complete
| 4b5cacb629f5: Pull complete
| 14408c8d4f9a: Pull complete
| ea67eaa7dd42: Pull complete
| a2a2197e145e: Pull complete
| 33b8ad332cc6: Pull complete
| aa30e10913db: Pull complete
| Digest: sha256:61152d6f60bd8d83e6f652bb99544cd0dae96945318a355d32f4cafaa2a5dc39
| Status: Downloaded newer image for golang:1.12.10
| ---> f945ea07f224
| Step 2/3 : RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh\| sh -s -- -b $(go env GOPATH)/bin v1.19.1
| ---> Running in f871522eb7af
| golangci/golangci-lint info checking GitHub for tag 'v1.19.1'
| golangci/golangci-lint info found version: 1.19.1 for v1.19.1/linux/amd64
| tar: golangci-lint-1.19.1-linux-amd64/LICENSE: Cannot change ownership to uid 1678343834, gid 593637566: Invalid argument
| tar: golangci-lint-1.19.1-linux-amd64/README.md: Cannot change ownership to uid 1678343834, gid 593637566: Invalid argument
| tar: golangci-lint-1.19.1-linux-amd64/golangci-lint: Cannot change ownership to uid 1678343834, gid 593637566: Invalid argument
| tar: Exiting with failure status due to previous errors
| The command '/bin/sh -c curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh\| sh -s -- -b $(go env GOPATH)/bin v1.19.1' returned a non-zero code: 2
| Unable to find image 'go1210:latest' locally
| docker: Error response from daemon: pull access denied for go1210, repository does not exist or may require 'docker login'.
| See 'docker run --help'.
| Could not build manager binary
| 🚨 Error: The command exited with status 1