-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
Your PR fixed this right? |
also internal is now excluded automatically |
I retried with cdad836, it does not, my PR fixed some panic but there are more
with
|
My particular repro:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: