aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-03-12 10:50:53 -0400
committerBryan C. Mills <bcmills@google.com>2020-03-12 15:06:36 +0000
commit938ad552cdfdb1707acedcc641c8f8ada642644d (patch)
tree487c2f07a8b52beddccc59a3d9289acb63eb738d /src/cmd
parentc95708462fb24f379f4bcdedd6ea664ee38ea562 (diff)
downloadgo-938ad552cdfdb1707acedcc641c8f8ada642644d.tar.xz
cmd/go: add missing newline to "go" line in cache key
This was missed in CL 223139. It doesn't seem to affect correctness, but might be confusing if we need to debug the cache key. Updates #37804 Change-Id: I979efa68381cf79a7e246581510c90a724be6cd9 Reviewed-on: https://go-review.googlesource.com/c/go/+/223144 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/go/internal/work/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
index c71149baa3..8f2ffee36f 100644
--- a/src/cmd/go/internal/work/exec.go
+++ b/src/cmd/go/internal/work/exec.go
@@ -214,7 +214,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version)
}
if p.Module != nil {
- fmt.Fprintf(h, "go %s", p.Module.GoVersion)
+ fmt.Fprintf(h, "go %s\n", p.Module.GoVersion)
}
fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
fmt.Fprintf(h, "import %q\n", p.ImportPath)