Debian Codegraph @

src/cmd/dist/notgo122.go

raw
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Go 1.24 and later requires Go 1.22.6 as the bootstrap toolchain.
6 // If cmd/dist is built using an earlier Go version, this file will be
7 // included in the build and cause an error like:
8 //
9 // % GOROOT_BOOTSTRAP=$HOME/sdk/go1.16 ./make.bash
10 // Building Go cmd/dist using /Users/rsc/sdk/go1.16. (go1.16 darwin/amd64)
11 // found packages main (build.go) and building_Go_requires_Go_1_22_6_or_later (notgo122.go) in /Users/rsc/go/src/cmd/dist
12 // %
13 //
14 // which is the best we can do under the circumstances.
15 //
16 // See go.dev/issue/44505 for more background on
17 // why Go moved on from Go 1.4 for bootstrap.
18
19 //go:build !go1.22
20
21 package building_Go_requires_Go_1_22_6_or_later