-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
fix(deps): error obtaining VCS status: exit status 128 at docker build #990
Conversation
cc: @mfrata |
Another option: ko-build/ko#672 Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
Did you figure out why it fails in the first place? Git is installed in the builder, and .git
should also be added 🤔
How to replicate the error: `make docker` Previous error: ``` ... long log ---> f394d136bb6c Step 7/24 : ADD proto/go.sum proto/go.sum ---> 7fca7e520cb3 Step 8/24 : ENV CGO_ENABLED 1 ---> Running in ca87bf346155 Removing intermediate container ca87bf346155 ---> af2dbef0c762 Step 9/24 : RUN go mod download ---> Running in 98785997fa9c Removing intermediate container 98785997fa9c ---> f74577fb6d14 Step 10/24 : ADD . . ---> f1cc0ac767f0 Step 11/24 : RUN go build -tags sqlite -o /usr/bin/keto . ---> Running in 913258959d81 error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. The command '/bin/sh -c go build -tags sqlite -o /usr/bin/keto .' returned a non-zero code: 1 ``` This is fixed by setting -buildvcs=false ref: golang/go#49004
7d4e2a9
to
b7b4d07
Compare
Unfortunately no, I tried another approachs as described here golang/go#49004, but the unique way I got to make it work was passing this flag. |
Actually I guess it can be related to the way I structured the project that will use keto. I added keto repository as submodule of another git repository that I am building as part of access control solution. By using git submodule, the I think this is the reason, since it's not failing in the github CI, but fails in mine and my local clone (as submodule). |
Hello @ryukinix |
How to replicate the error:
make docker
Previous error:
This is fixed by setting
-buildvcs=false
flagref: golang/go#49004
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.