Skip to content

Install script fails on CircleCI #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
13rac1 opened this issue Oct 20, 2018 · 2 comments
Closed

Install script fails on CircleCI #250

13rac1 opened this issue Oct 20, 2018 · 2 comments
Labels
area: install Issue relates to installation or downloading process

Comments

@13rac1
Copy link

13rac1 commented Oct 20, 2018

Problem

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?

@jirfag
Copy link
Contributor

jirfag commented Oct 28, 2018

hi!
the proper solution is to fix goreleaser script.
The workaround is to copy binary file manually:

curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.10.2
sudo cp ./bin/golangci-lint $GOPATH/bin/

does it work ok?

@garagatyi
Copy link

@jirfag it helped me in the same situation, thanks!

@jirfag jirfag closed this as completed Oct 15, 2019
@ldez ldez added the area: install Issue relates to installation or downloading process label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: install Issue relates to installation or downloading process
Projects
None yet
Development

No branches or pull requests

5 participants