Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.12.0
-
None
Description
If two modules have the same name, the produced go code will not compile.
For example:
import ( "github.com/sample/project/common" "github.com/different/thing/common" )
In go the final component (commons) is used as the name so there is a collision.
This can be fixed by aliasing the modules
import ( common_1 "github.com/sample/project/common" common_2 "github.com/different/thing/common" )
Attachments
Issue Links
- links to