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

golang alpine docker image should include git #37314

Closed
relax-admin opened this issue Feb 20, 2020 · 1 comment
Closed

golang alpine docker image should include git #37314

relax-admin opened this issue Feb 20, 2020 · 1 comment

Comments

@relax-admin
Copy link

relax-admin commented Feb 20, 2020

Since go mod needs git to download private libraries, such as gitlab, do you consider adding git to docker golang alpine?

What version of Go are you using (go version)?

$ go version
docker: golang:1.13-alpine

What did you do?

There is a go mod project that references the gitlab private library. When I execute go build, it prompts an error.

What did you expect to see?

go: downloading gitlab.srxcloud.com/test-group/utils v0.0.1
go: extracting gitlab.srxcloud.com/test-group/utils v0.0.1
go: finding gitlab.srxcloud.com/test-group/utils v0.0.1

What did you see instead?

go: gitlab.srxcloud.com/test-group/utils@v0.0.1: git init --bare in /go/pkg/mod/cache/vcs/4057063b4e5edfa5f3fcb02ce9e41e5fbddacd674d24e08a9780bd04e1bc7d74: exec: "git": executable file not found in $PATH
@ALTree
Copy link
Member

ALTree commented Feb 20, 2020

Hi,

we don't control or distribute the Go docker images, so you should file an issue in the docker image issue tracker, here: https://github.com/docker-library/golang

In any case, someone already did file issues asking for git in the Alpine image:

etc etc

Closing here, since this is not an issue related to the Go Project.

@ALTree ALTree closed this as completed Feb 20, 2020
@golang golang locked and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants