aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Matloob <matloob@google.com>2015-01-18 16:04:47 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2015-01-19 00:35:40 +0000
commit020637daa979cff4035e68b09802e045456fa943 (patch)
tree251cb979d1df2cd8725dea9f2511797a8877af5c /src
parentfd2642bfe3b4fd3d9e56125cf69553cafc366891 (diff)
downloadgo-020637daa979cff4035e68b09802e045456fa943.tar.xz
cmd/dist: produce a properly formatted zversion.go
gofmt inserts a blank line line between const and var declarations Change-Id: I3f2ddbd9e66a74eb3f37a2fe641b93820b02229e Reviewed-on: https://go-review.googlesource.com/3022 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/buildruntime.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/dist/buildruntime.go b/src/cmd/dist/buildruntime.go
index c0ec2efbd6..1e6ae82397 100644
--- a/src/cmd/dist/buildruntime.go
+++ b/src/cmd/dist/buildruntime.go
@@ -27,6 +27,7 @@ func mkzversion(dir, file string) {
"\n"+
"const defaultGoroot = `%s`\n"+
"const theVersion = `%s`\n"+
+ "\n"+
"var buildVersion = theVersion\n", goroot_final, goversion)
writefile(out, file, 0)