Skip to content

go version seems broken somehow... #71869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rayjlinden opened this issue Feb 21, 2025 · 2 comments
Closed

go version seems broken somehow... #71869

rayjlinden opened this issue Feb 21, 2025 · 2 comments
Labels
BugReport Issues describing a possible bug in the Go implementation.

Comments

@rayjlinden
Copy link

Go version

1.23.6

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/rayj/.cache/go-build'
GOENV='/home/rayj/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/var/tmp/rayj/gocode/pkg/mod'
GONOPROXY='github.com/lindenlab/*'
GONOSUMDB='github.com/lindenlab/*'
GOOS='linux'
GOPATH='/var/tmp/rayj/gocode'
GOPRIVATE='github.com/lindenlab/*'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/var/tmp/rayj/gocode/pkg/mod/golang.org/[email protected]'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='go1.22.4'
GOTOOLDIR='/var/tmp/rayj/gocode/pkg/mod/golang.org/[email protected]/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3428743121=/tmp/go-build -gno-record-gcc-switches'

What did you do?

I just installed go 1.23.6 (replacing go1.22.4). However the NEW binary still reports the old version!!!

What did you see happen?

rayj@bullseye(gobuild123)$ go version
go version go1.22.4 linux/amd64
rayj@bullseye(gobuild123)$ which go
/var/tmp/mw_pkgs/go/bin/go
rayj@bullseye(gobuild123)$ go version /var/tmp/mw_pkgs/go/bin/go
/var/tmp/mw_pkgs/go/bin/go: go1.23.6

I also see the go env command returns GOVERSION='go1.22.4' among all the other vars.

This never used to happen during previous upgrades so this is rather confusing...

Why would the go binary return an old version number?

What did you expect to see?

I expect go version to return:
go version go1.23.6 linux/amd64

@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Feb 21, 2025
@seankhliao
Copy link
Member

see your GOTOOLCHAIN setting

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation.
Projects
None yet
Development

No branches or pull requests

3 participants