mirror of https://github.com/golang/go.git
cmd/dist: fix detection of go1 version
R=golang-dev, r CC=golang-dev https://golang.org/cl/5924044
This commit is contained in:
parent
c748689277
commit
901ee5c151
|
|
@ -362,7 +362,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")) {
|
||||
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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue