chore(luarocks): add rockspec to publish/install with luarocks#2607
Conversation
|
Hey @GuillaumeDesforges thanks for this PR. Absolutely awesome idea and one that I think is worthwhile pursuing. My immediate thought is...how can we automate this? I think it would be cool to add a release workflow like I have with a Ruby gem so that we're always keeping it up to date. Potentially we should do the same with the rockspec too? A simple lua script to traverse the CodeCompanion directory and create a rockspec file on our behalf. |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Automation would be the best indeed. I'll look into it, though time is a scarce resource ;) if anyone wants to jump on this please do! |
21ee3f1 to
d33e801
Compare
|
@GuillaumeDesforges - I came across this GitHub workflow that could automatically publish the release to LuaRocks. |
|
This PR is stale because it has been open for 30 days with no activity. |
d33e801 to
ed2713e
Compare
|
@olimorris done, it successfully pushed https://luarocks.org/modules/gdfrj/codecompanion.nvim/scm-1 |
|
@GuillaumeDesforges you are a hero!! In terms of next steps, presume I register on LuaRocks and get an API key etc? |
|
Exactly, it's pretty straightforward. Once you have an account I'll just free my entry on the luarocks repository so you can create it. Hopefully it should work? The GA job expects a |
|
Amazing. Thanks so much for your work on this. I've tied in the LuaRocks upload to my release mechanism so hopefully it will upload when I next do a release. |
|
Did you set a I can delete the luarocks repo so you can re-create it and be its owner. |
|
I sure do: https://luarocks.org/modules/olimorris |
|
Great! I have deleted the package I had created. I can't see your own module when I search https://luarocks.org/search?q=codecompanion.nvim it is now shown only when searching non root https://luarocks.org/search?q=codecompanion.nvim&non_root=on |
Description
Allow installation of
codecompanion.nvimwithluarocks(https://luarocks.org/).Having this file does not, in itself, allow users to install via luarocks; it must be uploaded to https://luarocks.org/.
Since I needed to install it, I have gone and pushed this version to https://luarocks.org/modules/gdfrj/codecompanion.nvim; I can transfer ownership if you'd like to publish yourself (e.g. in the CI). Otherwise I can happily do it by hand when notified (ping me via GitHub or email).
Checklist
Well, I have not opened a discussion before. If you don't care you may just close the PR I wan't take it personally. :)
make allto ensure docs are generated, tests pass and StyLua has formatted my codeNot needed here though
... and wishing you a happy New Year!