Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
Change-Id: I6ebafdbf5e056600571cae4a7271c58622e844c8
  • Loading branch information
qiulaidongfeng committed Sep 8, 2024
1 parent 9287edb commit 63e038d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/dist/buildtool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (strings.Contains(ver, "devel") && version.Compare(version.Lang(minBootstrap), ver) == 1) || version.Compare(ver, minBootstrap) == -1 {
if version.Compare(ver, version.Lang(minBootstrap)) == 1 && version.Compare(ver, minBootstrap) == -1 {
fatalf("%s does not meet the minimum bootstrap requirement of %s or later", ver, minBootstrap)
}

Expand Down

0 comments on commit 63e038d

Please sign in to comment.