This is a follow-up on #25568: It is possible to get an internal compiler error when invoking the compiler with plausible but incorrect -I arguments leading to selection of different but identically named packages ("io" in this case). To reproduce:
go tool compile fixedbugs/bug345.dir/io.go
go tool compile -I . fixedbugs/bug345.dir/main.go
fixedbugs/bug345.dir/main.go:10:2: internal compiler error: conflicting package heights 4 and 0 for path "io"
The issue here is an incorrect argument for -I. The following invocation:
go tool compile -I $HOME/test/fixedbugs/bug345.dir fixedbugs/bug345.dir/main.go
works as expected.
The internal error is confusing. We should be able to provide a better error message.
The text was updated successfully, but these errors were encountered: