-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: manage luarocks installation as rockspec dependency #340
Conversation
Review ChecklistDoes this PR follow the Contribution Guidelines? Following is a partial checklist: Proper conventional commit scoping:
If applicable:
|
The bootstrapping guide still hard codes a luarocks install. Not sure how to solve that. |
Code written thus far looks good to me apart from the removal NTB mentioned. In my opinion, we should rewrite a large portion of the installation script to perform a temporary installation into I think we should try to tackle the problem in one big swoop here, it's quite likely we'll need to mark these changes as breaking and bump to 3.0? I can imagine that the |
I've updated the installer and bootstrap scripts to install to a temp directory (not tested yet).
I don't think actually breaks any existing installations. And it might be nice to still be able to override the |
I can't figure out why the nix build of rocks.nvim fails with
@teto do you have an idea? Could this be an issue with It looks like the {
["name"] = "dep-0",
["rocks_dir"] = "luarocks-3.11.0-rocks",
["root"] = "/nix/store/rzafl4br5rpmxs36srcj5vs7r03h785k-luarocks-3.11.0"
}, |
efac34f
to
0fa6ba7
Compare
This one is technically ready, but I would like to wait for a luarocks release that has a fix for luarocks/luarocks#1661 |
342e763
to
9e353a7
Compare
...and of course it's broken on Windows 😠 |
5c8e24b
to
e53c0e2
Compare
So... on Windows, luarocks installs a I'm done with this for Windows 😠. We have a few options:
|
sry I completely missed your ping here. The nix issue will be fixed with NixOS/nixpkgs#316221 hopefully (dropping this here https://github.com/oploadk/localua as it looked of interest). |
Code LGTM, although I've yet to actually try this on my machine, so that'll be the next step :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a crude manual test but it seems to function nicely :)
Closes #336.
Existing installations will have to unset
vim.g.rocks_nvim.luarocks_binary
for this to take effect (Linux and macOS only).