]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: recognize version "devel" as dev. branch and apply -next
authorShenghou Ma <minux.ma@gmail.com>
Mon, 27 Aug 2012 20:03:27 +0000 (04:03 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 27 Aug 2012 20:03:27 +0000 (04:03 +0800)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6476066

src/cmd/api/goapi.go

index ad1c6bb8caed16dd964fee8f4bad87aeacc212cb..992762602e560cec1430edc607a3a256f48d21c2 100644 (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 = ""