librespeed/speedtest-go

Docker image build failed with 'error obtaining VCS status'

Opened this issue · 0 comments

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