1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

cmd/api: recognize version "devel" as dev. branch and apply -next

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6476066
This commit is contained in:
Shenghou Ma 2012-08-28 04:03:27 +08:00
parent 5e8de365dc
commit f653dfeb49

View File

@ -100,7 +100,7 @@ func setContexts() {
func main() {
flag.Parse()
if !strings.Contains(runtime.Version(), "weekly") {
if !strings.Contains(runtime.Version(), "weekly") && runtime.Version() != "devel" {
if *nextFile != "" {
fmt.Printf("Go version is %q, ignoring -next %s\n", runtime.Version(), *nextFile)
*nextFile = ""