From 5cb67d7ba4fab6961d3693545697c051daa6a3b0 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 1 May 2014 12:13:32 -0400 Subject: [PATCH] cmd/dist: permit go* tag in main branch when it includes "beta" This change allows us to give an hg tag such as "go1.3beta1" to revisions in the main branch without breaking the build. This is helpful for community members who want to build the beta from source. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/90190044 --- src/cmd/dist/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 4ffc78dbc5..5d90628829 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -444,7 +444,7 @@ setup(void) } // For release, make sure excluded things are excluded. - if(hasprefix(goversion, "release.") || hasprefix(goversion, "go")) { + if(hasprefix(goversion, "release.") || (hasprefix(goversion, "go") && !contains(goversion, "beta"))) { for(i=0; i