nvim-neorocks / rocks

An alternative frontend app for luarocks.org
MIT License
24 stars 1 forks source link

refactor: move Luarock class into separate file #29

Closed vhyrro closed 3 months ago

vhyrro commented 3 months ago

This PR attempts to refactor the components of rockspec/dependency.rs.

Question: does LuaDependency also theoretically counts as a "luarock", but I've decided to keep that in the old dependency.rs file, which I feel makes sense. Feedback is welcome on this.

mrcjkb commented 3 months ago

Question: does LuaDependency also theoretically counts as a "luarock", but I've decided to keep that in the old dependency.rs file, which I feel makes sense. Feedback is welcome on this.

The difference between a LuaRock and a LuaDependency is that the former has a Version and the latter has a VersionReq (constraints).