-
-
Notifications
You must be signed in to change notification settings - Fork 834
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: add rockspec + luarocks upload workflow #2276
Conversation
If this PR is accepted, a package on www.luarocks.org will need to be added, which can be done from only one account. See luarocks/luarocks-site#173. |
we can do this and i can also maintain the luarocks package. i kinda already do that for plenary as well: https://luarocks.org/search?q=plenary.nvim |
Is anything missing here? I think it looks good but you marked it as a Draft ? |
The rockspec itself should be good to go. On my NixOS machine, in a nix shell with luarocks install ./telescope.nvim-scm-1.rockspec --local gives me
There may also the concern of keeping the luarocks packages up to date (i.e. using github release workflows). For example, the |
It looks like the error is because the plenary luarocks package doesn't have a non-dev release. |
I had removed plenary from luarocks.org so that the plenary maintainers can upload their own version. Seems like they haven't yet so I reuploaded a version: https://luarocks.org/modules/teto/plenary.nvim . I used the tagged version, let me know if it's too old and we can nag the plenary maintainers to push a new tag / maintain the rockspec. |
Hey teto, that a funny things because i did upload to luarocks: https://luarocks.org/modules/Conni2461/plenary.nvim Maybe i did something wrong because its flagged as Like i previously said in the plenary repo, i am fine with maintaining it and keeping it up to date. |
@Conni2461 ha thanks for the report ! sry for the bad rap ^^'' .
I got hit by this too, so the rockspec you've added is the scm=source control management = dev version which is not installable via a plain You want a tagged release to make it work out of the box, which means editing the rockspec as I've done here (rename the extension to rockspec, else github complained): Depending on the project, some of them git the plenary.nvim-0.1.0-1.rockspec. I think it's a nice thing to do in case you need to reupload it and for others to fork/patch/contribute. |
Maybe a script that generates the rockspec based on the current git tag or revision (using something like |
telescope.nvim is a common dependency across Neovim plugins. Using luarocks may alleviate the need for users to specify their plugins' dependencies in their plugin manager. (e.g., vim-plug or packer). See also: https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html
I think this is ready now. :) |
I can confirm this workflow works (used in https://github.com/neovim/nvim-lspconfig) so looking forward to see this merged :) |
of course i am going to merge it (i also merged it in plenary). Thanks for all your work :) I'll try to make a new telescope release (0.1.1) in the next couple of days. I wanna merge a couple more fixes, but i will manually upload 0.1.0 in the next 10min |
the filename of the rockspec has to match the version inside it and apparently it doesn't accept the shortsha as a version number since it contains letters. |
The script blindly assumes it's run on a tagged release. Anything that isn't tagged will have the shortsha appended to it, which as @teto points out doesn't match the luarock versioning spec. I would suggest copying the rockspec to a temp directory and manually setting the |
yeah makes sense. thanks 0.1.0 is now also published |
telescope.nvim is a common dependency across Neovim plugins. Using luarocks may alleviate the need for users to specify their plugins' dependencies in their plugin manager. (e.g., vim-plug or packer). See also: https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html (cherry picked from commit e8c01ba)
Description
telescope.nvim
is a common dependency across Neovim plugins. Using luarocks may alleviate the need for users to specify their plugins' dependencies in their plugin manager.(e.g., vim-plug or packer).
See also:
https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
luarocks install ./telescope.nvim-scm-1.rockspec --local
Checklist: