-
Notifications
You must be signed in to change notification settings - Fork 51
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
generator: --include doesn't support external package(s) ? #179
Comments
For |
Hmm, well, but that doesn't really make much sense in terms of portability - local path on my machine would be different from the one my colleague uses (and I think it also might change for new package version). So it pretty much means |
Bear in mind that includes can be relative, so if you use the standard go location for packages your include can be something like |
Right, but that's still probably "a hacky way to do it" at best - because, like I mentioned above:
To me it seems the best work-around at the moment would be to redefine those external types in the package As a related side-note, from what I understand for package-local types you still need to do something along the lines of adding an include like this:
which is also not ideal in terms of code upgrades - for example, if I move struct definition to another file |
Perhaps I'm using it wrong (there isn't a proper example for it though), but when doing something like
I get the following error running
sszgen
:I've tried different ways to reference this external package (using alias and whatnot) but result is the same.
Additionally, if I try embedding - the error would be long the following lines:
which kind of suggest that external packages aren't supported at all (if they are supported, why not for embedding).
The text was updated successfully, but these errors were encountered: