sweet/harnesses: stop trimming "devel " prefix from Go version
The "devel " prefix is no more as of CL 668015. It's still present as
a substring, making it a https://go.dev/doc/toolchain#name compatible
format (a "non-standard toolchain").
For golang/go#73369.
Change-Id: I86693562119bf7ec8f61a2fab902b29ceaefede3
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/669215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
diff --git a/sweet/harnesses/go-build.go b/sweet/harnesses/go-build.go
index 4fcefad..95557d5 100644
--- a/sweet/harnesses/go-build.go
+++ b/sweet/harnesses/go-build.go
@@ -10,7 +10,6 @@
"go/version"
"os/exec"
"path/filepath"
- "strings"
"golang.org/x/benchmarks/sweet/common"
"golang.org/x/benchmarks/sweet/common/fileutil"
@@ -204,13 +203,6 @@
if err != nil {
return nil, fmt.Errorf("error reading build info from Go toolchain: %v", err)
}
-
- // NOTE(go.dev/issue/73369): Tip toolchain versions look like
- // "devel go1.25-9ce47e66e8 Wed Mar 26 03:48:50 2025 -0700".
- // This is not a valid go/version version, so it sorts before
- // every valid version. If we strip "devel", then the remainder
- // is valid.
- bi.GoVersion = strings.TrimPrefix(bi.GoVersion, "devel ")
}
base := buildBenchmarks