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

generate-groups.sh failed with error obtaining VCS in Golang v1.19.5 container #156

Closed
blackpiglet opened this issue Mar 27, 2023 · 0 comments

Comments

@blackpiglet
Copy link

Hi,
docker-library/golang#452
I met the same error when running generate-groups.sh in Golang v1.19.5 container environment.

+ /go/src/k8s.io/code-generator/generate-groups.sh all github.com/vmware-tanzu/velero/pkg/generated github.com/vmware-tanzu/velero/pkg/apis velero:v1 --go-header-file ./hack/boilerplate.go.txt --output-base ../../..
go: downloading github.com/spf13/pflag v1.0.5
go: downloading k8s.io/gengo v0.0.0-20211129171323-c02415ce4185
go: downloading k8s.io/klog/v2 v2.70.1
go: downloading golang.org/x/tools v0.1.12
go: downloading github.com/go-logr/logr v1.2.3
go: downloading golang.org/x/sys v0.3.0
go: downloading golang.org/x/mod v0.6.0-dev.0.2022041922[303](https://github.com/vmware-tanzu/velero/actions/runs/4532756483/jobs/7984602989?pr=6039#step:6:304)8-86c51ed26bb4
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.

This should be a git issue, but I failed to resolve this error with the command git config --add safe.directory.
I workaround by adding -buildvcs=false into generate-groups.sh's go build command.

Is there any suggestion here?

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