• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

READMED25-Apr-20251 KiB2215

build.goD25-Apr-202554 KiB1,9811,450

build_test.goD25-Apr-2025757 2718

buildgo.goD25-Apr-20254.2 KiB163107

buildruntime.goD25-Apr-20252.5 KiB8440

buildtag.goD25-Apr-20253 KiB13499

buildtag_test.goD25-Apr-20251.2 KiB4436

buildtool.goD25-Apr-202511.5 KiB395283

doc.goD25-Apr-2025645 221

exec.goD25-Apr-2025957 4126

imports.goD25-Apr-20256.3 KiB277218

main.goD25-Apr-20255.5 KiB195155

notgo120.goD25-Apr-2025829 221

quoted.goD25-Apr-20251.2 KiB5437

supported_test.goD25-Apr-20251.1 KiB4935

sys_default.goD25-Apr-2025214 113

sys_windows.goD25-Apr-20251.6 KiB5845

test.goD25-Apr-202549.7 KiB1,6941,260

testjson.goD25-Apr-20254.6 KiB205162

testjson_test.goD25-Apr-20251.9 KiB8670

util.goD25-Apr-202511.2 KiB476340

util_gc.goD25-Apr-2025609 214

util_gccgo.goD25-Apr-2025252 144

vfp_arm.sD25-Apr-2025651 2714

vfp_default.sD25-Apr-2025317 177

README

1This program, dist, is the bootstrapping tool for the Go distribution.
2
3As of Go 1.5, dist and other parts of the compiler toolchain are written
4in Go, making bootstrapping a little more involved than in the past.
5The approach is to build the current release of Go with an earlier one.
6
7The process to install Go 1.x, for x ≥ 22, is:
8
91. Build cmd/dist with Go 1.20.6.
102. Using dist, build Go 1.x compiler toolchain with Go 1.20.6.
113. Using dist, rebuild Go 1.x compiler toolchain with itself.
124. Using dist, build Go 1.x cmd/go (as go_bootstrap) with Go 1.x compiler toolchain.
135. Using go_bootstrap, build the remaining Go 1.x standard library and commands.
14
15Because of backward compatibility, although the steps above say Go 1.20.6,
16in practice any release ≥ Go 1.20.6 but < Go 1.x will work as the bootstrap base.
17Releases ≥ Go 1.x are very likely to work as well.
18
19See https://go.dev/s/go15bootstrap for more details about the original bootstrap
20and https://go.dev/issue/54265 for details about later bootstrap version bumps.
21
22