You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.10.2
golangci/golangci-lint info checking GitHub for tag 'v1.10.2'
golangci/golangci-lint info found version: 1.10.2 for v1.10.2/linux/amd64
install: cannot change permissions of ‘/go/bin’: Operation not permitted
Exited with code 1
Adding sudo it works, but changes the permissions of /go/bin so later go get installs fail.
Cause
The cause is /go/bin is owned by root with 777 perms. You can check the official Docker image: circleci/golang:1.10
Workaround
sudo chown circleci:circleci /go/bin
Solution
There are multiple ways this could be fixed. Here? CircleCI images? What do you think?
The text was updated successfully, but these errors were encountered:
Problem
Adding
sudo
it works, but changes the permissions of/go/bin
so latergo get
installs fail.Cause
The cause is
/go/bin
is owned by root with 777 perms. You can check the official Docker image:circleci/golang:1.10
Workaround
Solution
There are multiple ways this could be fixed. Here? CircleCI images? What do you think?
The text was updated successfully, but these errors were encountered: