-
Notifications
You must be signed in to change notification settings - Fork 3
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
Uploaded rockspec does not match the source .rockspec #569
Comments
Hey 👋 This is a duplicate of For clarification: luarocks-tag-release currently does not use |
So the fix would be to define a Alternatively...delete the .rockspec entirely and use the default template + drive its contents completely by the github workflow? |
Yes. Using your own template is usually done if you have a more complex build step than the |
I've encountered an issue with using a custom template. Before running unittests we use luarocks to download all dependencies needed for the unittests to run https://github.com/ColinKennedy/nvim-best-practices-plugin-template/blob/4590508ec1ced872899330b216b75ffc97eca982/.github/workflows/test.yml#L44. e.g. If I replace the There is a simple-but-not-ideal solution to the problem which is to replace luarocks install dependency_a
luarocks install dependency_b
luarocks install dependency_c
luarocks install test_dependency_a
luarocks install test_dependency_b
luarocks install test_dependency_c
luarocks install test_dependency_d Except that has its own issue - which is that the dependencies listed in a Right now I can only think of a couple ways out of this. The simplest-but-not-simple initial thought was "what if I expanded the What do you think about all of this? |
you can still use an scm rockspec for tests. luarocks-tag-release just ignores it. |
I understand wanting to do things the right way. Though I would prefer writing a stop-gap replacement tool so I can keep a single source of truth than having to have two files and explaining that to anyone wanting to use my plugin template. If it's easy to do would this repo make a second alt-action that does just the file expansion without any of the upload logic? Alternatively I think I could make my own repo and reuse the |
In the Lua ecosystem, it's been common practise to have a We're currently focusing all our efforts on getting rocks ready for use. |
Right, I forgot that the template is a stopgap in itself. So I'd be asking for a stopgap for a stopgap :) I just looked on GitHub's documentation https://docs.github.com/en/actions/sharing-automations/creating-actions/publishing-actions-in-github-marketplace - this is the important line "Each repository must contain a single action." So it looks like adding a multi-action situation isn't going to cut it. I'll see if I can make a separate repository+action and reuse as much as possible from here |
you can create composite actions that are composed of multiple existing actions. |
I've been unable to install my luarocks packages as expected. After looking into it, the issue is that the rockspec that uploads to luarocks does not match what I'd written.
Here is an example.
This is the input .rockspec:
https://github.com/ColinKennedy/mega.vimdoc/blob/90a28a5403b440f7d9c85b7f4ccd04e3dcbdfb58/mega.vimdoc-scm-1.rockspec
And here what makes it into luarocks, on-upload
https://luarocks.org/manifests/colinkennedy/mega.cmdparse-1.0.3-1.rockspec
As you can see, the
dependencies
section is missingmini.doc
andmega.logging
. Both of which have uploads in luarocks.The
test_dependencies
is also missing its contents. Why is this information being stripped out?I can see in this repo's README that there's apparently a section that says you can optionally define
dependencies
andtest_dependencies
(https://github.com/nvim-neorocks/luarocks-tag-release?tab=readme-ov-file#dependencies). I haven't tried if adding things manually to there would solve the problem but the README.md does say the it should be optional. And I would hope that the .rockspec would be taken as the source of truth.The text was updated successfully, but these errors were encountered: