Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dmlambea opened this issue May 17, 2020 · 1 comment
Closed

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

dmlambea opened this issue May 17, 2020 · 1 comment
Labels
question Usability question, not directly related to an error with the image Request Request for image modification or feature

Comments

@dmlambea
Copy link

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.

@wglambert wglambert added question Usability question, not directly related to an error with the image Request Request for image modification or feature labels May 18, 2020
@wglambert
Copy link

#250 (comment)

#250 (comment)

As discussed above, adding git to the Alpine variant can currently be accomplished with a very trivial Dockerfile similar to the following:

FROM golang:1.11-alpine3.8
RUN apk add --no-cache git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

3 participants