-
-
Notifications
You must be signed in to change notification settings - Fork 123
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: publish releases to luarocks #185
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. |
Very cool thanks for the PR! One question on the copied directories, do you know if this is this handled by packer by adding them to the RTP? I'd be worried that if a user installs it from luarocks, they wouldn't see the docs |
Good question. |
OK just wanted to check thank you. One thing, I've tried adding nvim-treesitter as a dependency but it fails with |
It also seems the version of plenary that is available is outdated (missing the |
Yup. I'm facing similar issues with one of my repos that I'm trying to make compatible with luarocks. Let's mark this as draft for now, and I'll get back to it when I know more and have a solution. |
The scm version installs the one from the "source control manager", git usually. So it should install the latest version. Problem is you have to tell luarocks to install dev/"scm" versions otherwise it doesn't see them. but I still have an issue: with the "builtin" build type of luarocks, luarocks tries to compile the test files of nvim-treesitter and some of them are broken on purpose which makes the install so I am not sure which way to go to work around that (changing the build type removes the 'builtin' install which helps skip lots of boilerplate). I will ask on luarocks. Thanks for the PR. |
so I've gone the Makefile way and have a working build at https://github.com/teto/nvim-treesitter/tree/release-rockspec-0.8.1. Will try to merge this in nvim-treesitter/test it in nixpkgs |
@rcarriga plenary.nvim now has an automated release workflow 🥳 |
@teto I'll merge your makefile approach with the automated release workflow and open a draft PR to nvim-treesitter. [Edit] the Makefile looks like you're still experimenting with it? |
Awesome to hear! I'll try get some time to integrate an automated release with the semantic release neotest already has. I'd love to have versioned releases 😁 |
I have just published a GitHub action to simplify LuaRocks releases. |
neotest 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 have updated this PR with a workflow that automatically publishes to LuaRocks whenever a release is published, along with a LuaRocks badge in the readme (assuming the existence of a Notes
|
The rockspec is no longer needed.
Hey apologies for not looking at this recently, but thanks for keeping it maintained and improving it! I love having it all handled by the action 😁 |
Hmm it doesn't seem to have triggered, any idea why? |
That's strange. I've been having a similar issue in which my release workflow doesn't publish the action to the marketplace (it just creates a github release). Maybe the |
neotest 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