-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature Request: variant export binary should bundle modules #28
Comments
@osterman Hey! I'm now working on this. Firstly I tried to implement this by producing a “flattened” version of all the local and remote variant sources. The flattened sources can be embedded into the binary then. It requires the modified (flattened) .variant file to the disk using some hcl2 functionality. But the functionality, hclwrite, seems very limited and unable to encode HCL2 construtcts used in Variant. So I’m going to abandon this idea. |
I'll try embedding the module files using statik (or packr, packr2, pkger, or whatever?) next. Internally Variant2 will be changed to use an overlay filesystem composed of statik fs and the real os filesystem, and prefer reading from the former so that embedded files are read if exists and the os files are tried next(variant run and shim cases). This seems a bit inelegant, but should work universally. And It's possible without interfering with complex hcl2 functionalities. |
what
variant export binary
should bundle all module dependencies into the binarywhy
The text was updated successfully, but these errors were encountered: