-
Notifications
You must be signed in to change notification settings - Fork 55
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
Specify a custom haxelib path or use haxe env PATH if provided #227
Comments
(btw I am open to make a pull request for option 1 if the change seems reasonable) |
I'm open to a solution to this, I've considered it before, but so far nobody seems to have needed it. ;) Need to think a bit about what the best approach is. |
Another approach is to not use haxelib repos at all -- don't even set it up. Pass in all of the libraries on the command line as classpaths and add the defines that the library needs. Honestly, that's the way to get full control of your compile without having individual developer's setups interfering with the process. |
The problem is that currently, In other words, you currently need a globally installed Ideally, This is already possible for |
You might also take a look at lix. That gives you a project local haxe as well and works ok with vshaxe. I just set the paths to |
I am well aware of lix but this |
Currently, I can manage to use a custom haxe binary and make this haxe use a different haxelib by providing it a PATH env like this:
But this doesn't affect the
get_haxelibRepo()
andresolveHaxelib()
methods which always use the default globalhaxelib
.I see 2 options to solve the problem:
haxe.executable
binary path and env vars, it could be useful to have an equivalent option for haxelib binary and let vshaxe use it if provided. Like:haxe.executable
option to ensure the resolved haxelib binary is the same between haxe and vshaxe.If any of these two options is provided (but I have a strong preference to first option as it seems more flexible in my opinion and doesn't affect the default behaviour if not provided), it would allow to use completely self-contained per-project haxe/haxelib binaries.
Regarding the specific use case I have, it is about using haxe and haxelib installed locally on a project (through NPM), without any use of a globally installed haxe/haxelib. And it would be great if a vshaxe workspace could be configured properly for that situation!
The text was updated successfully, but these errors were encountered: