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
Type aliases points to the underlying type not the root one, this cause issues where the autogenerated go package does not build if it links to internal packages.
#348
Open
Jorropo opened this issue
Feb 24, 2024
· 4 comments
I have code like this:
gopy pkg a
then creates a foldera/a
and tries to importa/b/internal
which does not work because it's not allowed to import an internal package.My real world usecase is some existing librairy with type alias chains going through multiple modules.
I think this could be solved with the
GODEBUG=gotypesalias=1
https://pkg.go.dev/go/types#Alias but I'm not familiar with the gopy codebase.The text was updated successfully, but these errors were encountered: