-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: doc/install/source instructions don't work due to distribution (ubuntu 22.04) provided go (go1.18.1) being too old #65654
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
Comments
https://go.dev/doc/go1.22#bootstrap release notes point this out. 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. |
Note that the page says:
Emphasis on "recent" is mine. 1.18 is no longer supported, so it probably doesn't qualify as "recent". It is also true that below it says:
"any" can be misleading if LTS distros still ship 1.18. Maybe we could amend the "any other packaged Go distribution" part reiterating that is has to be a recent, supported one. |
Change https://go.dev/cl/562619 mentions this issue: |
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+ |
Go version
1.22
Output of
go env
in 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
The text was updated successfully, but these errors were encountered: