-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
LuaRocks 3 compatibility #8
Comments
That would really be welcomed |
Implementation of Luarocks 2 is quite messy and not well extensible, so it required a lot of ugly hacks to make it build static libraries and cooperate with luapak. This should be theoretically better in Luarocks 3, but I didn’t have time nor motivation to look into it. Anyway, PRs are definitely welcome! |
I'm also really interested on this, if there is already something going about this I can help for sure |
@jirutka I believe the only differences in the rockspec format 3.0 that are relevant to luapak are:
My guess is that it's probably easier to work the above into your current codebase than to resync the forked code. |
Been working on this cause I really want to use this project myself on newer luarocks versions. I would really appreciate some help as I am not too familiar with the luarocks API |
@Friyet did you make any progress on this? I'm looking to perhaps further efforts along these lines a bit myself and am currently looking into whether rehashing |
Luapak is not a fork of LuaRocks; it uses LuaRocks as a dependency. All the code directly interacting with LuaRocks is located in the luapak/luarocks directory – it’s a facade (and kinda anti-corruption layer) for the rest of the Luapak modules. However, LuaRocks 2 didn’t have a sufficient API for this, so it’s hack-ish. It should be relatively easy to update Luapak. Most of the code is decoupled from LuaRocks. The hard part is to dig deep into the LuaRocks code base, which has been rewritten in v3, and figure out how to rewire it. |
When you look at the readme, only the first step (corresponding to the |
For my project (A Rust app with built in Lua VM and embedded LuaRocks) only the I'll probably be looking more at the LuaRocks side of things for now but using some of this as a reference. If that benefits Luapak in the end that would be great. |
I did, and could not get anywhere no matter how hard i tried, it was a huge mess |
Hey, I am currently in need of a way of bundling up a bunch of Lua and binary rock-dependencies together with some Lua code and create a native-ish install experience. luapak seems perfect, but has some trouble cooperating with luarocks 3:
I see that you wrote this quite a while ago and I assume are not interested in working on this yourself currently. I am happy to take a look myself, I just wanted to ask if there is any advice you can give me before I try to find my own way into your source and the new luarocks? Or is there something bigger about luarocks3 that makes luapak not viable to be ported?
The text was updated successfully, but these errors were encountered: