You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: could not import "package" (cannot import "package" (type parameter bound more than once), possibly version skew - reinstall package) #51836
Activity
elagergren-spideroak commentedon Mar 21, 2022
Related to #49893
elagergren-spideroak commentedon Mar 21, 2022
Note that the problem the duplicate package name,
a. Changinga/atoa/bfixes the problem: https://go.dev/play/p/OWv924ynWsvSame for other variations (
a/internal/a, etc.).ianlancetaylor commentedon Mar 21, 2022
CC @griesemer @findleyr
ianlancetaylor commentedon Mar 21, 2022
@gopherbot Please open backport to 1.18
This seems to be a compiler error on valid code.
gopherbot commentedon Mar 21, 2022
Backport issue(s) opened: #51847 (for 1.18).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
findleyr commentedon Mar 21, 2022
I can take a look at this.
Presumably the problem is that the key in this index is incorrect, and doesn't differentiate the two packages:
https://cs.opensource.google/go/go/+/master:src/cmd/compile/internal/importer/iimport.go;l=219;drc=d35ed094864617d82c5701f56811ad68b37eda6e
gopherbot commentedon Mar 21, 2022
Change https://go.dev/cl/394219 mentions this issue:
cmd/compile/internal/importer: key tparams on pkg path rather than namegopherbot commentedon Mar 29, 2022
Change https://go.dev/cl/394854 mentions this issue:
[release-branch.go1.18] cmd/compile/internal/importer: key tparams by Package instead of pkgname[release-branch.go1.18] cmd/compile/internal/importer: key tparams by…
cmd/compile/internal/importer: key tparams by Package instead of pkgname