]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: add line numbers to godebug errors
authorMichael Matloob <matloob@golang.org>
Mon, 3 Jun 2024 22:42:12 +0000 (18:42 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 6 Jun 2024 18:36:30 +0000 (18:36 +0000)
commit4b0dd556080fc207962fabdd93007cd4c6ebb04a
tree0fd18c9df21843564a9038f7fe7e3a52fb77e0eb
parent2be4b3913a3693958f95b520a309bfc4fda0ee21
cmd/go/internal/modload: add line numbers to godebug errors

In addition, add a line number to the go.work error for multiple use statements
for the same directory. Also clean up the error prefix for go.work
errors now containing line numbers.

Fixes #67623

Change-Id: Ia7edcc50f7d7ec907b4a9eb4fe270c75d04c1fa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/590135
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_errors_pos.txt [new file with mode: 0644]
src/cmd/go/testdata/script/work.txt
src/cmd/go/testdata/script/work_errors_pos.txt [new file with mode: 0644]