golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.98k stars 17.67k forks source link

import/path: issue title #69545

Closed larspehrsson closed 1 month ago

larspehrsson commented 1 month ago

Go version

go version go1.20.14 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/larsp/Library/Caches/go-build"
GOENV="/Users/larsp/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/larsp/go/pkg/mod"
GONOPROXY="bitbucket.org/xx,gitlab.com/xx-software"
GONOSUMDB="bitbucket.org/xx,gitlab.com/xx-software"
GOOS="darwin"
GOPATH="/Users/larsp/go"
GOPRIVATE="bitbucket.org/xx,gitlab.com/xx-software"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go@1.20/1.20.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go@1.20/1.20.14/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.14"
GCCGO="gccgo"
AR="ar"
CC="cc"
CXX="c++"
CGO_ENABLED="1"
GOMOD="/Users/larsp/code/xxx/go.mod"
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 -fdebug-prefix-map=/var/folders/t6/sd47q7x17sn89frnh5msqwc40000gp/T/go-build1235379278=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go install golang.org/x/tools/cmd/goimports@latest

What did you see happen?

go: golang.org/x/tools/cmd/goimports@latest (in golang.org/x/tools@v0.25.0): go.mod:3: invalid go version '1.22.0': must match format 1.23

What did you expect to see?

A successful install. This works: go install golang.org/x/tools/cmd/goimports@v0.24.0 This doesn't work: go install golang.org/x/tools/cmd/goimports@v0.24.0

gabyhelp commented 1 month ago

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

seankhliao commented 1 month ago

1.20 is no longer a supported version of go