From: Andrew Gerrand Date: Thu, 1 May 2014 16:13:32 +0000 (-0400) Subject: cmd/dist: permit go* tag in main branch when it includes "beta" X-Git-Tag: go1.3beta2~157 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5cb67d7ba4fab6961d3693545697c051daa6a3b0;p=gostls13.git 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 --- 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