Skip to content
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

affected/package: wrong version in terminal go v1.20 #58289

Closed
Moranilt opened this issue Feb 3, 2023 · 4 comments
Closed

affected/package: wrong version in terminal go v1.20 #58289

Moranilt opened this issue Feb 3, 2023 · 4 comments

Comments

@Moranilt
Copy link

Moranilt commented Feb 3, 2023

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

$ go version
go version go1.19.5 darwin/arm64

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
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/morani/Library/Caches/go-build"
GOENV="/Users/morani/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/morani/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/morani/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.19.5/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.19.5/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.19.5"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vm/7t7qkj_s5h9dlzrg9gkm2m7w0000gn/T/go-build1449309482=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

MacOS 13.2

  1. Download https://go.dev/dl/go1.20.darwin-arm64.pkg installer of go v1.20
  2. Run installer
  3. Go to Terminal
  4. Run go version

What did you expect to see?

go version go1.20.0 darwin/arm64

What did you see instead?

go version go1.19.5 darwin/arm64

/usr/local/go/VERSION: go1.20

@seankhliao
Copy link
Member

you're using go installed by homebrew, not the installer.

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

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
@Moranilt
Copy link
Author

Moranilt commented Feb 3, 2023

@seankhliao, you are wrong. I'm always installing Go with installers from https://go.dev. But 1.20 is not installing correctly. Looks like it's bug in your installer for this version.

@Moranilt
Copy link
Author

Moranilt commented Feb 3, 2023

Exactly what helped: brew uninstall go
I have no clue how go1.19.5 have been instaled on my PC after running go1.20.0 installer. Anyway you helped me. Thank you.

P.S. Maybe it's a bug.

@seankhliao
Copy link
Member

Homebrew may have installed go as a dependency of something else you installed.
The Go installer does not interact with homebrew.

@golang golang locked and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants