-
Notifications
You must be signed in to change notification settings - Fork 95
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
gen_imports is not useful for embedded interpretter #107
Comments
I'm thinking I'd add a new Then from the command line we'd need to plumb in the name of the package in which the new file will live and the path to the file (or directory if we want to derive the filename). That's all not too hard. I do wish this stuff could work within modules. |
I thought about your use case, and it's very similar to create bindings for package X, where the bindings are external to both
The main difference is that There is also another, minor difference: For these reasons, I think you will have an easier time by extending Does it make sense to you? |
Yes, that makes sense. I'll give it a shot when I get a shot when I get a chance. |
Say I want to embed gomacro in an application that is not connected to the internet and I really do not want to go off and compile new imports. I do, however, want to empower users to be able to import and use a number of package. I'd like to generate the binding for these packages ahead of time and compile them in. The
-g
flag generates exactly the sort of thing I'd like to have generated but it always puts it in the source tree of the dependency. This seems bad in a number of dimensions. I want to be able to specify the file path and the package name for the generated file.I also think my user story here is, to some extent, bumping up against some module limitations I don't really understand. I would think that I don't need those things I'm generating to be in my
GOPATH
but rather in thego.mod
for my project.Does this all make sense? I'm happy to look into some of this. The generation stuff doesn't seem particularly hard, just plumbing.
The text was updated successfully, but these errors were encountered: