You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,"
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
The text was updated successfully, but these errors were encountered:
I personally have moved on from "LTS" a long time a-go (pun intended): they tend to be long-time broken, seen both for Debian and Ubuntu, but also RHEL, and they expect everyone else to keep their slow LTS pace and totally give up innovation. They expect miracles and that simply doesn't work.
Recent can be quite subjective, especially within the context Linux distributions... it might be worth clarifying that this is referring to supported go distribution or go package.
From the perspective of someone coming from Ubuntu, 22.04 is the most recent distribution, and go1.18 (released 2022-03-15) is pretty recent as well, and will be officially supported (by Ubuntu) for another 3 years.
It is probably also worth checking over the section "Bootstrap toolchain from C source code", as this will now require an extra step to build an intermediate version of go (1.20?) from the 1.4 c source code, which can then be used to compile go 1.22+