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

Docker build: "go: missing Git command" #4

Open
leandro-ro opened this issue Mar 31, 2022 · 0 comments
Open

Docker build: "go: missing Git command" #4

leandro-ro opened this issue Mar 31, 2022 · 0 comments

Comments

@leandro-ro
Copy link

leandro-ro commented Mar 31, 2022

Problem:
Error when calling docker build -t perun-polkadot-demo .

#12 4.447 go: missing Git command. See https://golang.org/s/gogetcmd
#12 4.447 error obtaining VCS status: exec: "git": executable file not found in $PATH
#12 4.447       Use -buildvcs=false to disable VCS stamping.

Reason:
go 1.18's alpine image does not contain the git binary, which was included in alpine 1.17.

Proposal:
Add .git to .dockerignore (as git not needed for building in our case)

@leandro-ro leandro-ro changed the title "go: missing Git command" for docker build Docker build: "go: missing Git command" Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant