Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

When building as a git submodule, temporalite docker build fails to fetch VCS status #156

Description

@psigen

Expected Behavior

Running docker build . in the temporalite root folder when it is checked out as a submodule should complete with success and yield a temporalite image.

Actual Behavior

error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.

~/temporal-ts-example/temporalite$ docker build .
Sending build context to Docker daemon  248.8kB
Step 1/10 : FROM golang:1.18 as builder
 ---> 5fedf7be08ce
Step 2/10 : WORKDIR ${GOPATH:-/go}/src/temporalite
 ---> Using cache
 ---> 6eade41865ba
Step 3/10 : COPY . .
 ---> 07766e30a072
Step 4/10 : RUN go mod download
 ---> Running in 9cae528d1223
Removing intermediate container 9cae528d1223
 ---> b1e44ea7077d
Step 5/10 : RUN go get -d -v ./...
 ---> Running in 23828201d0e2
Removing intermediate container 23828201d0e2
 ---> b523f95c1c35
Step 6/10 : RUN go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/temporalite/cmd/temporalite
 ---> Running in c13724713caf
error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.
The command '/bin/sh -c go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/temporalite/cmd/temporalite' returned a non-zero code: 1

Steps to Reproduce the Problem

  1. Create a git repository (git init)
  2. git submodule add https://github.com/temporalio/temporalite.git
  3. cd temporalite && docker build .

Specifications

  • Version:
    $ git log -n1
    commit 81d76ce23f943bcb6468d793e7dcba436b6cfc55 (HEAD -> main, origin/main, origin/HEAD)
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Thu Oct 20 04:15:00 2022 +0000
    
  • Platform:
    $ cat /etc/lsb-release 
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.04
    DISTRIB_CODENAME=bionic
    DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
    
    $ docker version
    Client: Docker Engine - Community
     Version:           20.10.18
     API version:       1.41
     Go version:        go1.18.6
     Git commit:        b40c2f6
     Built:             Thu Sep  8 23:11:34 2022
     OS/Arch:           linux/amd64
     Context:           default
     Experimental:      true
    
    Server: Docker Engine - Community
     Engine:
      Version:          20.10.18
      API version:      1.41 (minimum version 1.12)
      Go version:       go1.18.6
      Git commit:       e42327a
      Built:            Thu Sep  8 23:09:28 2022
      OS/Arch:          linux/amd64
      Experimental:     false
     containerd:
      Version:          1.6.8
      GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
     runc:
      Version:          1.1.4
      GitCommit:        v1.1.4-0-g5fd4c4d
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions