Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Failed to install on CircleCI #92

Closed
powerman opened this issue Nov 13, 2018 · 0 comments
Closed

Failed to install on CircleCI #92

powerman opened this issue Nov 13, 2018 · 0 comments

Comments

@powerman
Copy link

Using current docker image circleci/golang:1 we've this setup:

circleci@34bf5a878789:~$ id
uid=3434(circleci) gid=3434(circleci) groups=3434(circleci)
circleci@34bf5a878789:~$ go env GOPATH
/go
circleci@34bf5a878789:~$ ls -al $(go env GOPATH)
total 20
drwxrwxrwx  6 root     root     4096 Nov 13 15:45 .
drwxr-xr-x 83 root     root     4096 Nov 13 15:45 ..
drwxrwxrwx  2 root     root     4096 Nov  2 23:50 bin
drwxr-xr-x  3 circleci circleci 4096 Nov 13 15:39 pkg
drwxrwxrwx  2 root     root     4096 Nov  2 23:50 src
circleci@34bf5a878789:~$ echo $PATH
/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Such default $PATH makes it inconvenient to let goreleaser to install to ~/bin, but when I run goreleaser script with -b $(go env GOPATH)/bin option it executes install -d /go/bin, which fails while trying to fchmod it:

circleci@34bf5a878789:~$ install -d /go/bin
install: cannot change permissions of ‘/go/bin’: Operation not permitted

Looks like goreleaser should be fixed to avoid needless install -d in case directory already exists and writable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants