mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
new
Change-Id: I54dc17eb3d3d978d28f7e7be0bc8f94ed5b75adf
This commit is contained in:
parent
63e038d1b9
commit
425cd7f03c
1 changed files with 1 additions and 1 deletions
2
src/cmd/dist/buildtool.go
vendored
2
src/cmd/dist/buildtool.go
vendored
|
|
@ -142,7 +142,7 @@ func bootstrapBuildTools() {
|
|||
ver := run(pathf("%s/bin", goroot_bootstrap), CheckExit, pathf("%s/bin/go", goroot_bootstrap), "env", "GOVERSION")
|
||||
// go env GOVERSION output like "go1.22.6\n" or "devel go1.24-ffb3e574 Thu Aug 29 20:16:26 2024 +0000\n".
|
||||
ver = ver[:len(ver)-1]
|
||||
if version.Compare(ver, version.Lang(minBootstrap)) == 1 && version.Compare(ver, minBootstrap) == -1 {
|
||||
if version.Compare(ver, version.Lang(minBootstrap)) > 0 && version.Compare(ver, minBootstrap) < 0 {
|
||||
fatalf("%s does not meet the minimum bootstrap requirement of %s or later", ver, minBootstrap)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue