Skip to content

Commit 425cd7f

Browse files
new
Change-Id: I54dc17eb3d3d978d28f7e7be0bc8f94ed5b75adf
1 parent 63e038d commit 425cd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/dist/buildtool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func bootstrapBuildTools() {
142142
ver := run(pathf("%s/bin", goroot_bootstrap), CheckExit, pathf("%s/bin/go", goroot_bootstrap), "env", "GOVERSION")
143143
// go env GOVERSION output like "go1.22.6\n" or "devel go1.24-ffb3e574 Thu Aug 29 20:16:26 2024 +0000\n".
144144
ver = ver[:len(ver)-1]
145-
if version.Compare(ver, version.Lang(minBootstrap)) == 1 && version.Compare(ver, minBootstrap) == -1 {
145+
if version.Compare(ver, version.Lang(minBootstrap)) > 0 && version.Compare(ver, minBootstrap) < 0 {
146146
fatalf("%s does not meet the minimum bootstrap requirement of %s or later", ver, minBootstrap)
147147
}
148148

0 commit comments

Comments
 (0)