Skip to content

gotoolchain is not upgraded after goup install or goup set #67

@kecci

Description

@kecci

I was run goup install 1.24.0

➜  ~ goup ls
| VERSION | ACTIVE |
|---------|--------|
| 1.23.5  |        |
| 1.23.6  |        |
| 1.24.0  |   *    |

and getting the gotoolchain is not upgraded: (still using 1.23.5)

➜  ~ go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/abyankecci/Library/Caches/go-build'
GOENV='/Users/abyankecci/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/abyankecci/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/abyankecci/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
**GOROOT='/Users/abyankecci/go/pkg/mod/golang.org/[email protected]'**
GOSUMDB='sum.golang.org'
GOTMPDIR=''
**GOTOOLCHAIN='go1.23.5+auto'**
**GOTOOLDIR='/Users/abyankecci/go/pkg/mod/golang.org/[email protected]/pkg/tool/darwin_arm64'**
GOVCS=''
**GOVERSION='go1.23.5'**
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/abyankecci/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='clang'
CXX='clang++'
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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/p1/3r66895x1296c01c8p3t1sfr0000gn/T/go-build2856418745=/tmp/go-build -gno-record-gcc-switches -fno-common'

after I set manually the gotoolchain, the go version just updated:

➜  ~ go env -w GOTOOLCHAIN=go1.24.0+auto

➜  ~ go version
go version go1.24.0 darwin/arm64

Are this expected behavior ?

Just want to know if any way to automaticly update the toolchain after goup install / goup set.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions