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 image build failed with 'error obtaining VCS status' #52

Open
mardijker opened this issue Aug 14, 2022 · 0 comments
Open

Docker image build failed with 'error obtaining VCS status' #52

mardijker opened this issue Aug 14, 2022 · 0 comments

Comments

@mardijker
Copy link

mardijker commented Aug 14, 2022

Description

Using the provided Dockerfile to build image failed with the following error:

`ERROR [build_base 7/7] RUN go build -ldflags "-w -s" 7.1s

[build_base 7/7] RUN go build -ldflags "-w -s" -trimpath -o speedtest .:
#0 6.495 error obtaining VCS status: exit status 128
#0 6.495 Use -buildvcs=false to disable VCS stamping.


failed to solve: executor failed running [/bin/sh -c go build -ldflags "-w -s" -trimpath -o speedtest .]: exit code: 1`

Server

v1.1.5

Client

Can't be accessed since build fail

Steps to reproduce

  • Clone this repository and build image using provided Dockerfile without modification
  • Image building proceed until build_base 7/7
  • Failed with logs provided above

Expected behaviour

Successfully build the image

Temporary Fix

Using golang-1.17 instead of golang-1.18 worked

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