aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-24 21:35:20 -0400
committerRuss Cox <rsc@golang.org>2012-09-24 21:35:20 -0400
commit5c4e2570c1704dde8ca5fbd965fe78e1c32853c0 (patch)
tree24566a5af833f665a9503d9be9dca69fe761ff1c /src/cmd/api
parent10ea6519e4e61d47385ca7b7f60ca96856271de7 (diff)
downloadgo-5c4e2570c1704dde8ca5fbd965fe78e1c32853c0.tar.xz
cmd/dist: new version for string for development branch
Remove VERSION, which was forcing version to 'devel'. Old: $ go version go version devel New: $ go version go version devel +0a3866d6cc6b Mon Sep 24 20:08:05 2012 -0400 The date and time (and time zone) is that of the most recent commit, not the time of the build itself. With some effort we could normalize the zone, but I don't think it's worth the effort (more C coding, since Mercurial is unhelpful). R=r, dsymonds CC=golang-dev https://golang.org/cl/6569049
Diffstat (limited to 'src/cmd/api')
-rw-r--r--src/cmd/api/goapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index ad2c5770a0..4d888edf16 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -100,7 +100,7 @@ func setContexts() {
func main() {
flag.Parse()
- if !strings.Contains(runtime.Version(), "weekly") && runtime.Version() != "devel" {
+ if !strings.Contains(runtime.Version(), "weekly") && !strings.Contains(runtime.Version(), "devel") {
if *nextFile != "" {
fmt.Printf("Go version is %q, ignoring -next %s\n", runtime.Version(), *nextFile)
*nextFile = ""