Go version
1.22
Output of go env in your module/workspace:
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/tomwhateley/go/bin"
GOCACHE="/home/tomwhateley/.cache/go-build"
GOENV="/home/tomwhateley/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/tomwhateley/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tomwhateley/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/tomwhateley/go/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/tomwhateley/go/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/tomwhateley/go/go/src/go.mod"
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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1016170179=/tmp/go-build -gno-record-gcc-switches"
What did you do?
On the most recent LTS version of Ubuntu (22.04) using the default version of go installed with apt-get install golang-go, I am unable to build the recent release of go (1.22) from souce following the instructions on the website: https://go.dev/doc/install/source
Specifically this section doesn't mention/discuss the Go version requirements:
"Install Go compiler binaries for bootstrap"
"The Go toolchain is written in Go. To build it, you need a Go compiler installed. The scripts that do the initial build of the tools look for a "go" command in $PATH, so as long as you have Go installed in your system and configured in your $PATH,"
What did you see happen?
New go, Yay!
cd ~/go
git clone git@github.com:golang/go.git
cd go/src
./all.bash
Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 linux/amd64)
found packages main (build.go) and building_Go_requires_Go_1_20_6_or_later (notgo120.go) in /home/tomwhateley/go/go/src/cmd/dist
What did you expect to see?
I was hoping to get the latest and greatest version of go built
Go version
1.22
Output of
go envin your module/workspace:What did you do?
On the most recent LTS version of Ubuntu (22.04) using the default version of go installed with apt-get install golang-go, I am unable to build the recent release of go (1.22) from souce following the instructions on the website: https://go.dev/doc/install/source
Specifically this section doesn't mention/discuss the Go version requirements:
"Install Go compiler binaries for bootstrap"
"The Go toolchain is written in Go. To build it, you need a Go compiler installed. The scripts that do the initial build of the tools look for a "go" command in $PATH, so as long as you have Go installed in your system and configured in your $PATH,"
What did you see happen?
New go, Yay!
cd ~/go
git clone git@github.com:golang/go.git
cd go/src
./all.bash
Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 linux/amd64)
found packages main (build.go) and building_Go_requires_Go_1_20_6_or_later (notgo120.go) in /home/tomwhateley/go/go/src/cmd/dist
What did you expect to see?
I was hoping to get the latest and greatest version of go built