]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: permit go* tag in main branch when it includes "beta"
authorAndrew Gerrand <adg@golang.org>
Thu, 1 May 2014 16:13:32 +0000 (12:13 -0400)
committerAndrew Gerrand <adg@golang.org>
Thu, 1 May 2014 16:13:32 +0000 (12:13 -0400)
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

index 4ffc78dbc538943bbf05c4a866a0ed647d10bdbf..5d9062882962ed5d4ad5ff7f3c42ee96cf43af07 100644 (file)
@@ -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<nelem(unreleased); i++)
                        if(isdir(bpathf(&b, "%s/%s", goroot, unreleased[i])))
                                fatal("%s should not exist in release build", bstr(&b));