go/packages: make error message for conflicting packages more clear
Make it slightly more clear that this is not a user error, but an internal error. Updates golang/go#30519 Change-Id: I7adb3b5bb1548eab8e46db48946d55f9d59a4311 Reviewed-on: https://go-review.googlesource.com/c/tools/+/168657 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
parent
db798565ff
commit
86483bace6
|
@ -586,7 +586,7 @@ func golistDriverCurrent(cfg *Config, words ...string) (*driverResponse, error)
|
||||||
|
|
||||||
if old, found := seen[p.ImportPath]; found {
|
if old, found := seen[p.ImportPath]; found {
|
||||||
if !reflect.DeepEqual(p, old) {
|
if !reflect.DeepEqual(p, old) {
|
||||||
return nil, fmt.Errorf("go list repeated package %v with different values", p.ImportPath)
|
return nil, fmt.Errorf("internal error: go list gives conflicting information for package ", p.ImportPath)
|
||||||
}
|
}
|
||||||
// skip the duplicate
|
// skip the duplicate
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue