aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2023-11-13 15:12:30 -0500
committerGopher Robot <gobot@golang.org>2023-11-14 15:24:21 +0000
commit31f0af1e5ea7be0d332ca82d483b1ee6a727e089 (patch)
treeb984a586a10a7df1e6ca82501cf5627008d26172 /src/cmd/api
parentdd88f23a2006307f835f42063b5168ec56c2c428 (diff)
downloadgo-31f0af1e5ea7be0d332ca82d483b1ee6a727e089.tar.xz
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
Diffstat (limited to 'src/cmd/api')
-rw-r--r--src/cmd/api/main_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/main_test.go b/src/cmd/api/main_test.go
index 610ea6331c..94e159e7d8 100644
--- a/src/cmd/api/main_test.go
+++ b/src/cmd/api/main_test.go
@@ -106,7 +106,7 @@ func Check(t *testing.T) {
}
var nextFiles []string
- if strings.Contains(runtime.Version(), "devel") {
+ if v := runtime.Version(); strings.Contains(v, "devel") || strings.Contains(v, "beta") {
next, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/next/*.txt"))
if err != nil {
t.Fatal(err)