go.dev/dl/: wrong version for darwin-amd64
lotusirous opened this issue · 11 comments
Go version
go1.21.4
What operating system and processor architecture are you using (go env)?
N/AWhat did you do?
Download latest go version from : https://go.dev/dl/
$ wget https://go.dev/dl/go1.21.5.darwin-amd64.tar.gz
$ shasum -a 256 go1.21.5.darwin-amd64.tar.gz
a2e1d5743e896e5fe1e7d96479c0a769254aed18cf216cf8f4c3a2300a9b3923 go1.21.5.darwin-amd64.tar.gz
$ ./go/bin/go version
What did you expect to see?
go version go1.21.5 darwin/amd64
What did you see instead?
go version go1.21.4 darwin/amd64
are you sure you're checking the version of go that you've just downloaded?
for the same artifact, extracted, we see:
$ go version -m ./go/bin/go
./go/bin/go: go1.21.5
and
$ strings ./go/bin/go | grep go1.2
go1.21.5
go1.21.5
Here is the output command that I used
$ ls -alh
Permissions Size User Date Modified Name
drwxr-xr-x - lotusirous 30 Nov 04:21 go
.rw-r--r-- 67M lotusirous 6 Dec 01:13 go1.21.5.darwin-amd64.tar.gz
$ which go
go not found
$ go version
zsh: command not found: go
$ ./go/bin/go version
go: golang.org/toolchain@v0.0.1-go1.21.4.darwin-amd64: verifying module: missing GOSUMDB
$ strings ./go/bin/go | grep go1.2
invalid flag in %s: %s %s (see https://golang.org/s/invalidflag)json: invalid number literal, trying to unmarshal %q into Numberreflect.StructOf: struct size would exceed virtual address space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . internal error: MatchPackages: %s is not a valid package pattern^(?P<root>chiselapp\.com/user/[A-Za-z0-9]+/repository/[\w.\-]+)$file reported by 'svn list', but not written by 'svn export': %sABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_go: attempting to write an int to the index that overflows int32flate: invalid compression level %d: want value in range [-2, 9]5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5invalid GOTOOLCHAIN %q: only version suffixes are +auto and +pathuser arena chunk size is not a multiple of the physical page sizeruntime.SetFinalizer: pointer not at beginning of allocated blockgo: -insecure flag is no longer supported; use GOINSECURE insteadgo: read full module graph (forbidden by GODEBUG=lazymod=strict).-mod=%s not supported (can be '', 'mod', 'readonly', or 'vendor')go/build: Dir is non-empty, so relative srcDir is not allowed: %vinvalid toolchain version '%s': must match format go1.23 or localtls: internal error: attempted to read record with QUIC transporttls: server selected an invalid version after a HelloRetryRequestnet/http: Transport.DialTLS or DialTLSContext returned (nil, nil)xml: name %q in tag of %s.%s conflicts with name %q in %s.XMLNamex509: inner and outer signature algorithm identifiers don't matchx509: issuer name does not match subject from issuing certificatecryptobyte: pending child length %d exceeds %d-byte length prefixnistec: internal error: p224Table called with out-of-bounds valuenistec: internal error: p384Table called with out-of-bounds valuenistec: internal error: p521Table called with out-of-bounds valueruntime: unexpected error while checking standard file descriptor runtime: ReadTrace called from multiple goroutines simultaneously
go1.21.5
go1.21.5
go env please,
and do you have any go.mod files in parent directories
and do you have any go.mod files in parent directories
I don't have any go.mod in the parent directory
$ ls ../ | grep go.mod
$ ls -alh
Permissions Size User Date Modified Name
drwxr-xr-x - lotusirous 30 Nov 04:21 go
.rw-r--r-- 67M lotusirous 6 Dec 01:13 go1.21.5.darwin-amd64.tar.gz
Here is my go env result.
./go/bin/go env
go: golang.org/toolchain@v0.0.1-go1.21.4.darwin-amd64: verifying module: missing GOSUMDB
After deleting the $HOME/go, I got the result
$ sudo rm -rf $HOME/go
$ ./go/bin/go env
go: downloading go1.21.4 (darwin/amd64)
go: download go1.21.4: GOPROXY list is not the empty string, but contains no entries
$ ./go/bin/go version
go: downloading go1.21.4 (darwin/amd64)
go: download go1.21.4: GOPROXY list is not the empty string, but contains no entries
is GOTOOLCHAIN set, either as an environment variable or in /Users/lotusirous/Library/Application Support/go/env
There is no GOTOOLCHAIN in my environment variables.
$ env |grep GOTOOLCHAIN
the file?
The result is
$ cat "$HOME/Library/Application Support/go/env"
GOTOOLCHAIN=go1.21.4+auto
right so the go command is working as expected, and performing a download / version switch as indicated by GOTOOLCHAIN