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

x/tools/cmd/getgo: cannot install Go 1.21 #63367

Closed
andrewpollock opened this issue Oct 4, 2023 · 6 comments
Closed

x/tools/cmd/getgo: cannot install Go 1.21 #63367

andrewpollock opened this issue Oct 4, 2023 · 6 comments
Labels
Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@andrewpollock
Copy link

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

$ go version
go version go1.22-20230729-RC00 cl/552016856 +457721cd52 X:fieldtrack,boringcrypto linux/amd64

Does this issue reproduce with the latest release?

I'll go with "yes"

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/usr/local/google/home/apollock/.cache/go-build'
GOENV='/usr/local/google/home/apollock/.config/go/env'
GOEXE=''
GOEXPERIMENT='fieldtrack,boringcrypto'
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/usr/local/google/home/apollock/go/pkg/mod'
GONOPROXY='*.googlesource.com,*.git.corp.google.com'
GONOSUMDB='*.googlesource.com,*.git.corp.google.com'
GOOS='linux'
GOPATH='/usr/local/google/home/apollock/go'
GOPRIVATE='*.googlesource.com,*.git.corp.google.com'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/google-golang'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/google-golang/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22-20230729-RC00 cl/552016856 +457721cd52 X:fieldtrack,boringcrypto'
GCCGO='gccgo'
GOAMD64='v1'
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 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1830009407=/tmp/go-build -gno-record-gcc-switches'

What did you do?

Ran https://github.com/google/osv.dev/blob/master/docker/ci/build.sh thusly:

./build.sh 20231004

What did you expect to see?

A successful Docker image build

What did you see instead?

+ chmod +x /tmp/installer_linux
+ SHELL=bash
+ /tmp/installer_linux -version 1.21
Welcome to the Go installer!
Downloading Go version go1.21 to /root/.go
This may take a bit of time...
Downloading Go from 404 Not Found failed with HTTP status %!s(MISSING)
The command '/bin/sh -c "/tmp/install_go.sh" "/tmp"' returned a non-zero code: 2

Further analysis:

$ gsutil ls gs://golang/go1.20.linux*
gs://golang/go1.20.linux-386.tar.gz
gs://golang/go1.20.linux-386.tar.gz.asc
gs://golang/go1.20.linux-386.tar.gz.sha256
gs://golang/go1.20.linux-amd64.tar.gz
gs://golang/go1.20.linux-amd64.tar.gz.asc
gs://golang/go1.20.linux-amd64.tar.gz.sha256
gs://golang/go1.20.linux-arm64.tar.gz
gs://golang/go1.20.linux-arm64.tar.gz.asc
gs://golang/go1.20.linux-arm64.tar.gz.sha256
gs://golang/go1.20.linux-armv6l.tar.gz
gs://golang/go1.20.linux-armv6l.tar.gz.asc
gs://golang/go1.20.linux-armv6l.tar.gz.sha256
gs://golang/go1.20.linux-ppc64le.tar.gz
gs://golang/go1.20.linux-ppc64le.tar.gz.asc
gs://golang/go1.20.linux-ppc64le.tar.gz.sha256
gs://golang/go1.20.linux-s390x.tar.gz
gs://golang/go1.20.linux-s390x.tar.gz.asc
gs://golang/go1.20.linux-s390x.tar.gz.sha256
$ gsutil ls gs://golang/go1.21.linux*
CommandException: One or more URLs matched no objects.
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Oct 4, 2023
@gopherbot gopherbot added this to the Unreleased milestone Oct 4, 2023
@andrewpollock
Copy link
Author

@another-rex discovered that 1.21.1 is installable.

andrewpollock added a commit to andrewpollock/osv.dev that referenced this issue Oct 4, 2023
@go101
Copy link

go101 commented Oct 4, 2023

Since Go 1.21, There is not go1.21, only go1.21.0.

@andrewpollock
Copy link
Author

@go101 All I can say is installing go1.21.1 worked... and:

$ gsutil ls gs://golang/go1.21.1.linux*
gs://golang/go1.21.1.linux-386.tar.gz
gs://golang/go1.21.1.linux-386.tar.gz.asc
gs://golang/go1.21.1.linux-386.tar.gz.sha256
gs://golang/go1.21.1.linux-amd64.tar.gz
gs://golang/go1.21.1.linux-amd64.tar.gz.asc
gs://golang/go1.21.1.linux-amd64.tar.gz.sha256
gs://golang/go1.21.1.linux-arm64.tar.gz
gs://golang/go1.21.1.linux-arm64.tar.gz.asc
gs://golang/go1.21.1.linux-arm64.tar.gz.sha256
gs://golang/go1.21.1.linux-armv6l.tar.gz
gs://golang/go1.21.1.linux-armv6l.tar.gz.asc
gs://golang/go1.21.1.linux-armv6l.tar.gz.sha256
gs://golang/go1.21.1.linux-loong64.tar.gz
gs://golang/go1.21.1.linux-loong64.tar.gz.asc
gs://golang/go1.21.1.linux-loong64.tar.gz.sha256
gs://golang/go1.21.1.linux-mips.tar.gz
gs://golang/go1.21.1.linux-mips.tar.gz.asc
gs://golang/go1.21.1.linux-mips.tar.gz.sha256
gs://golang/go1.21.1.linux-mips64.tar.gz
gs://golang/go1.21.1.linux-mips64.tar.gz.asc
gs://golang/go1.21.1.linux-mips64.tar.gz.sha256
gs://golang/go1.21.1.linux-mips64le.tar.gz
gs://golang/go1.21.1.linux-mips64le.tar.gz.asc
gs://golang/go1.21.1.linux-mips64le.tar.gz.sha256
gs://golang/go1.21.1.linux-mipsle.tar.gz
gs://golang/go1.21.1.linux-mipsle.tar.gz.asc
gs://golang/go1.21.1.linux-mipsle.tar.gz.sha256
gs://golang/go1.21.1.linux-ppc64.tar.gz
gs://golang/go1.21.1.linux-ppc64.tar.gz.asc
gs://golang/go1.21.1.linux-ppc64.tar.gz.sha256
gs://golang/go1.21.1.linux-ppc64le.tar.gz
gs://golang/go1.21.1.linux-ppc64le.tar.gz.asc
gs://golang/go1.21.1.linux-ppc64le.tar.gz.sha256
gs://golang/go1.21.1.linux-riscv64.tar.gz
gs://golang/go1.21.1.linux-riscv64.tar.gz.asc
gs://golang/go1.21.1.linux-riscv64.tar.gz.sha256
gs://golang/go1.21.1.linux-s390x.tar.gz
gs://golang/go1.21.1.linux-s390x.tar.gz.asc
gs://golang/go1.21.1.linux-s390x.tar.gz.sha256

@seankhliao
Copy link
Member

Duplicate of #62112

@seankhliao seankhliao marked this as a duplicate of #62112 Oct 4, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
@go101
Copy link

go101 commented Oct 4, 2023

@andrewpollock go1.21.1 certainly works, because that release indeed exists, as well as go1.21.0.

@seankhliao this should be different from #62112

@go101
Copy link

go101 commented Oct 4, 2023

see #60951

@seankhliao seankhliao marked this as not a duplicate of #62112 Oct 4, 2023
andrewpollock added a commit to google/osv.dev that referenced this issue Oct 4, 2023
Install Go 1.21.1 in the CI image as it is actually installable via this
installation method.

Works around golang/go#63367 and fixes what
was introduced in #1549

Adjust the installation method to match current documentation and add
some signposting to it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants