-
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
Idea for making adding third party packages to Gomacro easier when plugins aren't available #143
Comments
Currently what makes this hard is that gomacro --genimport doesn't let you dump the output in the current directory. |
Background: current statusGomacro uses the When running on other systems - for example Windows - the currently recommended workaround is to create an For that to work, you need a local writable copy of gomacro sources: Instead, you should download a copy of gomacro sources in Basically you start gomacro and
which means your local copy of gomacro sources have been modified, and should be recompiled. Of course such solution is not go-gettable. Proposed enhancementIf I understand correctly, what you are asking for is a simple method to generate an This is feasible, and it should be quite straightforward to implement, as the file |
That's about it. Maybe add another command to the Gomacro CLI that generates a package adding the specified third-party packages to Gomacro, then you just go build it. This could be the default method to add third-party packages, it generally seems simpler and less hacky. |
The cleanest way I've thought of is for you to create a local Go package with only a main() function that just calls gomacro.main(), you use go get to add the third-party packages you want to import, and then you have Gomacro generate the import files as part of this package. This lets you control where the packages are coming from and should let you easily set up a template for building Gomacro with a bunch of popular Science packages and then other people can download and compile it with just a go get.
The text was updated successfully, but these errors were encountered: