Commit e1acd854 authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/go: add newline after module-requires-version message

Fixes #30263

Change-Id: Iefb3d8baf815c19eaf915a59048e1da799ca0cdf
Reviewed-on: https://go-review.googlesource.com/c/162957
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
parent 5fcc2407
...@@ -655,7 +655,7 @@ func (b *Builder) build(a *Action) (err error) { ...@@ -655,7 +655,7 @@ func (b *Builder) build(a *Action) (err error) {
if len(out) > 0 { if len(out) > 0 {
output := b.processOutput(out) output := b.processOutput(out)
if p.Module != nil && !allowedVersion(p.Module.GoVersion) { if p.Module != nil && !allowedVersion(p.Module.GoVersion) {
output += "note: module requires Go " + p.Module.GoVersion output += "note: module requires Go " + p.Module.GoVersion + "\n"
} }
b.showOutput(a, a.Package.Dir, a.Package.Desc(), output) b.showOutput(a, a.Package.Dir, a.Package.Desc(), output)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment