Re: Dependency graph of top 350 rocks in luarocks.org
Quoting Alban Linard (2016-07-29 09:17:22)
> It seems strange that projects depend on testing tools, such as busted, as this dependency is usually used __only__ for development.
> I always end up writing two rockspecs: one to install development environment (busted, cluacov, luacheck, …) and a real one for the non-development dependencies, that is uploaded to luarocks.org.
> Is there a way to specify in one rockspec the distinction between dev dependencies and others ? Is there a better solution ? Good practices ?
Some days ago I had the same issue and wondered whether there is some way of
having “development dependencies” in a rockspec, but after reading through the
LuaRocks documentation the answer seems to be “no”. For now I have settled on
not adding the testing/development dependencies to my rockspecs, and trust
that the developers (that is: myself) will figure out how to install the
development dependencies :-)