Skip to content

Do not store the binary in GOPATH/bin in the Docker image  #304

@Dirbaio

Description

@Dirbaio

Docker image version: golangci/golangci-lint:v1.12.2

For CI builds using Go 1.11 modules, it's common to cache the GOPATH between builds, so that dependencies are downloaded only once. This is usually done by mounting an external dir from the build host on top of /go.

The issue is that golangci-lint binary is in /go/bin/golangci-lint. If GOPATH is mounted from outside, the binary stops being visible in the filesystem, and is thus not possible to run it.

IMO it would be better if golangci-lint was stored in /usr/local/bin, so it's always accessible.

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