-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Describe the bug
When I run make build-docker-linux I get a vcs-stamping error. I might have the build environment setup incorrectly? On the chance its not just me... here are the details!
make build-docker-linux
docker run \
-v /home/bryan/Projects/lagoon/lagoon-cli/vendor:/go/pkg/mod \
-v /home/bryan/Projects/lagoon/lagoon-cli:/go/src/github.com/uselagoon/lagoon-cli/ \
-e GO111MODULE=on \
-e GOOS=linux \
-e GOARCH=amd64 \
-w="/go/src/github.com/uselagoon/lagoon-cli/" \
golang:1.23 go build -ldflags '-w -s -X github.com/uselagoon/lagoon-cli/cmd.lagoonCLIVersion=v0.31.4+447b638a -X github.com/uselagoon/lagoon-cli/cmd.lagoonCLIBuild=2025-02-07T16:26:43-0600 -X "github.com/uselagoon/lagoon-cli/cmd.lagoonCLIBuildGoVersion=go version go1.23.0 linux/amd64"' -o builds/lagoon-cli-v0.31.4+447b638a-linux-amd64
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
make: *** [Makefile:77: build-docker-linux] Error 1
To Reproduce
Steps to reproduce the behavior:
- git clone the lagoon-cli repo, and checkout main branch
make build-docker-linux- See: error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
If I add the flag -buildvcs=false to the Makefile (see patch attached) I get a successful build using Docker
Metadata
Metadata
Assignees
Labels
No labels