Skip to content
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

support for lockfiles #28

Open
teto opened this issue Aug 28, 2023 · 2 comments
Open

support for lockfiles #28

teto opened this issue Aug 28, 2023 · 2 comments

Comments

@teto
Copy link
Collaborator

teto commented Aug 28, 2023

Though it's quite rare to see in the wild, luarocks supports lockfiles:
https://github.com/luarocks/luarocks/wiki/Pinning-versions-with-a-lock-file

Only example I know is:
https://github.com/luarocks/luarocks-site/blob/master/luarocks.lock

this is a lua file but simple enough that it can be parsed robustly (at least more easily than the rockspec).
This means it could be parsed directly via nix and in the case we are interested in fetching only dependencies (like in neorocks). The interesting aspect of this for luarocks-nix is to pin dependencies but it could be interesting for nixpkgs too.

cc @mrcjkb

@Freed-Wu
Copy link

Freed-Wu commented Feb 3, 2025

upstream luarocks have support --force-lock. luarocks-nix still doesn't support.

@mrcjkb
Copy link
Collaborator

mrcjkb commented Feb 3, 2025

I played around with luarocks lockfiles a bit in nvim-neorocks/rocks.nvim#244 and found the feature quite lacking, clumsy and buggy.
I PRd a fix for a bug I encountered, but that still hasn't been released.

That's why in rocks, we've implemented cargo style lockfiles that include rockspec + source hashes, which should hopefully one day be usable with nix 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants