Skip to content

go get -u is not updating all the modules #76982

@lordofscripts

Description

@lordofscripts

Go version

go1.25

Output of go env in your module/workspace:

AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/lordofscripts/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/lordofscripts/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3790010234=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/home/lordofscripts/go/golicense/go.mod'
GOMODCACHE='/home/lordofscripts/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/lordofscripts/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/lordofscripts/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.25.0'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

I was using a GitHub GO module which was quite old and had never been officially tagged, nor it had a release. My go.mod listed it as v0.0.0....

I requested the module owner to please tag it and make a release. He did create the first tag v1.0 and release on GitHub.

Then I ran go get -u ./... followed by go mod tidy but go.mod still shows the old version instead of the recently tagged v1.0 available on github.

No matter what I do, remove the cached version from go/pkg/mod/ it still believes in the old phantom version rather than the latest release.

What did you see happen?

The module dependecy does NOT get updated

What did you expect to see?

the dependency being reported as v1.0 on my library's go.mod file

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions