-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go/internal/modload: make AmbiguousImportError an ImportPathError
AmbiguousImportErrors will now be formatted like other ImportPathErrors: this means that now the ambiguously imported package won't be printed twice. Whereas the error message looked like the following: can't load package: package example.com/m/importy: ambiguous import: found package example.com/m/importy in multiple directories: $WORK/importy $WORK/vendor/example.com/m/importy It now looks like this: can't load package: ambiguous import: found package example.com/m/importy in multiple directories: $WORK/importy $WORK/vendor/example.com/m/importy Change-Id: I52a2074a6b3f5eb7d78d331d0852b7ea6b3735e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/221457 Run-TryBot: Michael Matloob <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters