On Thu, Dec 2, 2010 at 9:43 AM, steve donovan <[email protected]> wrote:
> On Thu, Dec 2, 2010 at 1:07 AM, Alexander Gladysh <[email protected]> wrote:
>> I need it to build a rock with luarocks make on a clean machine, using
>> non-public repository.

I thought luarocks make was supposed to support --only-from already:

------------------------------------------------------------
] bin/luarocks --only-from=http://www.luarocks.org/repositories/rocks-scm
make twitter-1.0.0-1.rockspec

Missing dependencies for twitter:
json4lua >= 0.9.3

Error: Could not find a rock to satisfy dependency: json4lua >= 0.9.3
------------------------------------------------------------
] bin/luarocks --only-from=http://www.luarocks.org/repositories/rocks
make twitter-1.0.0-1.rockspec

Missing dependencies for twitter:
json4lua >= 0.9.3

Archive:  
/System/Variable/tmp/luarocks_luarocks-rock-json4lua-0.9.30-1-7974/json4lua-0.9.30-1.src.rock
  inflating: json4lua-0.9.30-1.rockspec
 extracting: JSON4Lua-0.9.30.zip
Archive:  JSON4Lua-0.9.30.zip
   creating: JSON4Lua-0.9.30/
...
------------------------------------------------------------

Isn't this the expected behavior? That it uses only the given
repository as the source for dependencies?

> The current behavior is a little sneaky. If you say 'sudo luarocks
> make' it goes to the global repo, if 'luarocks make' it goes to the
> local repo.

That's because 'luarocks make' does both 'make' and 'make
install'-type jobs. Yes, this should change in a future release, but I
froze 2.0.4 already (I have one pending issue to verify in the latest
rc and if that's okay it should be released as final).

> I guess 'install' can be used for this job, although it does need a
> valid URL which _is_ awkward.

Could you elaborate on that? I'm not sure I understand.

-- Hisham

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to