-
Notifications
You must be signed in to change notification settings - Fork 15
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] Ability to pass extra luarocks installation args #439
Comments
Hey 👋 I don't think we currently support that. But it should be possible to implement something for [plugins."fugit2.nvim"]
version = "1.0.0"
install_args = [
"GIT2_DIR=/some/path"
] We would probably be faster to support it in rocks.toml only initially (so you'd have to enter it manually and then install it with @vhyrro what are your thoughts on this? |
As an initial implementation |
Actually, instead of doing this, should we instead support an |
@vhyrro, I think those ARGS must be provided via luarocks args and is not env variables. So I will disable Refs: |
We already do that1 😉 What could be tricky is coming up with a good API for args that are lists: :Rocks install {rock} opt=true install_args=["GIT2_DIR=/some/path","foo","bar"] or :Rocks install {rock} opt=true install_args=[GIT2_DIR=/some/path,foo,bar] or, assuming any args that rocks.nvim can't parse are :Rocks install {rock} opt=true GIT2_DIR=/some/path The last one is more concise, but also more brittle: If someone passes in
Luarocks won't pick up Since this is more of an edge case, I think we don't need to prioritise passing Footnotes
|
Oh wow, I didn't even know we did generic parsing of arguments like that. If env variables don't cut it (why, luarocks, why?), then I'm all for |
@mrcjkb, thank you for quick fix. When will you release a new version with this fix? |
Just waiting for a review from one of the other maintainers 😄 |
rather than
shouldn't we set those in the luarocks config instead so it becomes available to all plugins ? and by "we" I actually mean the user because it's platform specific. Via somethling like |
Luarocks permits providing flags on a per-install basis via |
my point is that putting those per plugin, you might have to repeat the same instructions for each plugin to find git, libzip etc so it's best to set them globally by default and if a plugin wants to override it, it can |
It would be neat if you could set them globally by default or via an environment variable. |
Hi, when installing https://github.com/SuperBo/fugit2.nvim with Rocks
:Rocks install fugit2.nvim
. I met these errors.I want to install fugit2.nvim with custom GIT2_DIR or GIG2_LIBDIR. How can I achieve this with
:Rocks
command.The text was updated successfully, but these errors were encountered: