Skip to content

Docker image: would you consider moving the binary elsewhere? #393

@fsouza

Description

@fsouza

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions