Skip to content

Commit 938ad55

Browse files
author
Bryan C. Mills
committed
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 <[email protected]> Reviewed-by: Jay Conrod <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent c957084 commit 938ad55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/internal/work/exec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
214214
fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version)
215215
}
216216
if p.Module != nil {
217-
fmt.Fprintf(h, "go %s", p.Module.GoVersion)
217+
fmt.Fprintf(h, "go %s\n", p.Module.GoVersion)
218218
}
219219
fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
220220
fmt.Fprintf(h, "import %q\n", p.ImportPath)

0 commit comments

Comments
 (0)