1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:00:25 -07:00

cmd/dist: fix mkzversion to produce gofmt'd output

Fix mkzversion to produce correctly formatted runtime/zversion.go.

Change-Id: Ie6bcd361a2f2e390b7f6c4980fcae2c41bb7e52f
Reviewed-on: https://go-review.googlesource.com/14355
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Dave Cheney 2015-09-07 16:04:01 +10:00
parent dab0dac01a
commit 60f0345667

View File

@ -32,7 +32,7 @@ func mkzversion(dir, file string) {
"const defaultGoroot = `%s`\n"+ "const defaultGoroot = `%s`\n"+
"const theVersion = `%s`\n"+ "const theVersion = `%s`\n"+
"const goexperiment = `%s`\n"+ "const goexperiment = `%s`\n"+
"const stackGuardMultiplier = %d\n"+ "const stackGuardMultiplier = %d\n\n"+
"var buildVersion = theVersion\n", goroot_final, findgoversion(), os.Getenv("GOEXPERIMENT"), stackGuardMultiplier()) "var buildVersion = theVersion\n", goroot_final, findgoversion(), os.Getenv("GOEXPERIMENT"), stackGuardMultiplier())
writefile(out, file, writeSkipSame) writefile(out, file, writeSkipSame)