cmd/go: can't get mod by version "vx.x" #27528
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?cspenrty
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/home/fancy/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/fancy/gopkg"
GOPROXY=""
GORACE=""
GOROOT="/home/fancy/go"
GOTMPDIR=""
GOTOOLDIR="/home/fancy/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/fancy/fancy.module/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build847469475=/tmp/go-build -gno-record-gcc-switches"
What did you do?
I create a mod, then create tag v1.0.0 and v1.0
When I set mod require v1.0.0, the program will build success. When I set require v1.0, it will build error.
What did you expect to see?
build success
What did you see instead?
invalid module version "v1.0": no matching versions for query "v1.0"
The text was updated successfully, but these errors were encountered: