librespeed / librespeed/speedtest-go

Docker image build failed with 'error obtaining VCS status'

Open
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
875
Forks
183
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided Dockerfile and reproduce the failure at the build_base step using the reported Go 1.18 image, then compare it with the working golang-1.17 image. Investigate the reported VCS status error and verify that the Docker image builds successfully without modification.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.