Skip to content

Commit e513328

Browse files
committed
build: add escape hatch for untested go versions
This change adds a custom untested_go_version build tag that allows for building with any go version without having to manually change the build flags.
1 parent 3dfc3dd commit e513328

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/util/goschedstats/runtime_go1.23.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
// The rest was copied verbatim from `runtime_go1.20_21_22.go`.
1818
//
1919
// [1] https://github.com/golang/go/commit/552faa8927a23fd5967435295c14af1741ac3653
20-
21-
//go:build gc && go1.23 && !go1.24
22-
// +build gc,go1.23,!go1.24
20+
//
21+
// The untested_go_version flag enables building on any go version, intended to
22+
// ease testing against Go at tip.
23+
//go:build (gc && go1.23 && !go1.24) || untested_go_version
24+
// +build gc,go1.23,!go1.24 untested_go_version
2325

2426
package goschedstats
2527

0 commit comments

Comments
 (0)