Skip to content

Commit b7b4d07

Browse files
ryukinixzepatrik
authored andcommitted
Fix error obtaining VCS status: exit status 128 at docker build
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
1 parent 81638c5 commit b7b4d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.docker/Dockerfile-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN go mod download
1616

1717
ADD . .
1818

19-
RUN go build -tags sqlite -o /usr/bin/keto .
19+
RUN go build -buildvcs=false -tags sqlite -o /usr/bin/keto .
2020

2121
FROM alpine:3.16
2222

0 commit comments

Comments
 (0)