-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
When dst automatically manages the imports block, the imports are internally keyed by path. This incorrectly assumes that only one import for each package path is possible. Although very rare, it is possible to add the same package multiple times with different aliases.
See: golang/go@3409ce3
In TestLoadStdLibAll we test that the entire standard library is able to be parsed and rebuilt including management of the imports block. This test fails for the two files server.go and request.go in net/http because of this.
In order to handle this gracefully would involve a major rewrite of the import management code which is the most complex part of dst. For now I've skipped the TestLoadStdLibAll for these two files.
Re: @dmitshur
dmitshur, mejibyte and rlch
Metadata
Metadata
Assignees
Labels
No labels