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
Using the Docker image in a Drone CI pipeline, I noticed that due to the binary being written to $GOPATH/bin, whenever using $GOPATH as the Drone workspace (to persist dependencies between steps), the binary becomes unavailable because Drone mounts $GOPATH as a volume.
One solution is to not use /go as the $GOPATH, but that would require either setting the environment variable in every step or customizing the images we use in every step. So the solution was to create a Docker image for golangci-lint that installs the binary to /bin/ instead of $GOPATH/bin. Would a PR with that change be accepted? :)
The text was updated successfully, but these errors were encountered:
fsouza
changed the title
Docker image: would you consider moving the binary elsewhere
Docker image: would you consider moving the binary elsewhere?
Feb 13, 2019
Using the Docker image in a Drone CI pipeline, I noticed that due to the binary being written to
$GOPATH/bin
, whenever using$GOPATH
as the Drone workspace (to persist dependencies between steps), the binary becomes unavailable because Drone mounts $GOPATH as a volume.One solution is to not use
/go
as the $GOPATH, but that would require either setting the environment variable in every step or customizing the images we use in every step. So the solution was to create a Docker image for golangci-lint that installs the binary to/bin/
instead of$GOPATH/bin
. Would a PR with that change be accepted? :)Some links:
The text was updated successfully, but these errors were encountered: