Skip to content

cmd/go: git tags with build metadata do not resolve #31713

Closed
@aeneasr

Description

@aeneasr

What version of Go are you using (go version)?

$ go version
go version go1.12.4 windows/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\foobar\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\workspace\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\foobar\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=D:\Temp\go-build415564098=/tmp/go-build -gno-record-gcc-switches

What did you do?

$ go get github.com/aeneasr/go-mod-buildmeta@v0.0.1-rc.1+buildmeta.1
go: finding github.com/aeneasr/go-mod-buildmeta v0.0.1-rc.1
go get github.com/aeneasr/go-mod-buildmeta@v0.0.1-rc.1+buildmeta.1: unknown revision v0.0.1-rc.1

$ go get github.com/aeneasr/go-mod-buildmeta@v0.0.2+buildmeta.1
go: finding github.com/aeneasr/go-mod-buildmeta v0.0.2
go get github.com/aeneasr/go-mod-buildmeta@v0.0.2+buildmeta.1: unknown revision v0.0.2
go get github.com/aeneasr/go-mod-buildmeta@v0.0.2+buildmeta.1
go: finding github.com/aeneasr/go-mod-buildmeta v0.0.2

$ go get github.com/aeneasr/go-mod-buildmeta@v0.0.2
go: finding github.com/aeneasr/go-mod-buildmeta v0.0.2
go get github.com/aeneasr/go-mod-buildmeta@v0.0.2: unknown revision v0.0.2

Despite all of those tags being available, it seems that tags build metadata is not resolving.

What did you expect to see?

I expected the dependencies to resolve.

What did you see instead?

The dependencies did not resolve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeGoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions