Skip to content

Go v1.12 alpine images don't have git installed #328

Closed
@dmlambea

Description

@dmlambea

Trying to build a module-enabled project with go build -o sample ./cmd/sample/... fails with an error:

go: github.com/stretchr/testify@v1.5.1: git init --bare in /go/pkg/mod/cache/vcs/ed2f58bca3966d01dc4666baa48276a4fab360938a8d941050d58e371e2bba77: exec: "git": executable file not found in $PATH

More recent versions of Go work flawlessly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or featurequestionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions