mirror of
https://github.com/golang/go
synced 2024-11-22 23:50:03 -07:00
cmd/go: add missing newline to retraction warning message
Fixes #44674 Change-Id: Icbdb79084bf7bd2f52cc0a53abcc1ec6f0c4a1bf Reviewed-on: https://go-review.googlesource.com/c/go/+/297350 Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Jay Conrod <jayconrod@google.com>
This commit is contained in:
parent
a400eb3261
commit
87beecd6df
@ -1530,7 +1530,7 @@ func (r *resolver) checkPackagesAndRetractions(ctx context.Context, pkgPatterns
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if retractPath != "" {
|
if retractPath != "" {
|
||||||
fmt.Fprintf(os.Stderr, "go: to switch to the latest unretracted version, run:\n\tgo get %s@latest", retractPath)
|
fmt.Fprintf(os.Stderr, "go: to switch to the latest unretracted version, run:\n\tgo get %s@latest\n", retractPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ cp go.mod.orig go.mod
|
|||||||
go mod edit -require example.com/retract/self/prev@v1.9.0
|
go mod edit -require example.com/retract/self/prev@v1.9.0
|
||||||
go get -d example.com/retract/self/prev
|
go get -d example.com/retract/self/prev
|
||||||
stderr '^go: warning: example.com/retract/self/prev@v1.9.0: retracted by module author: self$'
|
stderr '^go: warning: example.com/retract/self/prev@v1.9.0: retracted by module author: self$'
|
||||||
stderr '^go: to switch to the latest unretracted version, run:\n\tgo get example.com/retract/self/prev@latest$'
|
stderr '^go: to switch to the latest unretracted version, run:\n\tgo get example.com/retract/self/prev@latest\n$'
|
||||||
go list -m example.com/retract/self/prev
|
go list -m example.com/retract/self/prev
|
||||||
stdout '^example.com/retract/self/prev v1.9.0$'
|
stdout '^example.com/retract/self/prev v1.9.0$'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user