Skip to content

Commit 31f0af1

Browse files
dmitshurgopherbot
authored andcommitted
cmd/api: use api/next directory for beta versions
Even though we don't issue beta pre-releases of Go at this time, it can still be useful to build them without publishing as part of testing the release infrastructure. For such versions, use the next directory content so that the API check doesn't produce a false positive during the earlier stages of the development cycle, before the next directory is merged into a combined and eventually frozen api file. For #29205. Change-Id: Ib5e962670de1df22f7df64dd237b555953096808 Reviewed-on: https://go-review.googlesource.com/c/go/+/542000 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
1 parent dd88f23 commit 31f0af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/api/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func Check(t *testing.T) {
106106
}
107107

108108
var nextFiles []string
109-
if strings.Contains(runtime.Version(), "devel") {
109+
if v := runtime.Version(); strings.Contains(v, "devel") || strings.Contains(v, "beta") {
110110
next, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/next/*.txt"))
111111
if err != nil {
112112
t.Fatal(err)

0 commit comments

Comments
 (0)