librespeed / speedtest-go

Go backend for LibreSpeed
GNU Lesser General Public License v3.0
733 stars 157 forks source link

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

Open mardijker opened 2 years ago

mardijker commented 2 years ago

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

Expected behaviour

Successfully build the image

Temporary Fix

Using golang-1.17 instead of golang-1.18 worked