Le 19/12/2014 12:11, Gary V. Vaughan a écrit :
> Hi Kevin,
>
>> On 19 Dec 2014, at 10:38, Kevin KIN-FOO <kkin...@sierrawireless.com> wrote:
>>
>> Unfortunately not.
>>
>> I am seeking for a type of `source.url` which allows me to:
>>
>> $ luarocks pack some.rockspec
>> $ luarocks install some.rock
>>
>> And, this without running a local http server.
>> Do you think it is possible?
> I'm not sure about the pack part, but...
>
>> How do you check that your rockspec works?
> Before checking anything over the network, I first use:
>
>      luarocks make lyaml-5.1.0-1.rockspec
>
> Directly from the working directory of my project.
>
> Then I upload my rockspec files to github alongside the sources they install. 
> Because
> a few of my projects use Autotools to generate files, I have a special 
> 'release' branch
> purely for the bootstrapped sources (ie with autotool files already generated 
> as you
> would find after unpacking a release tarball). Obviously, for this to work, 
> the
> source.url has to point to the right tag on this release branch. Before I 
> upload the
> rockspec to moonscript, I check that it will work with, eg:
>
>      luarocks install 
> https://raw.githubusercontent.com/gvvaughan/lyaml/release/lyaml-5.1.0-1.rockspec
>
> (note that I have to tag the release first so that github provides the 
> zipball referenced
> by the rockspec)
>
> I also have a git rockspec for bootstrapping unautotooled revisions from the 
> master
> branch, which I test similarly.
>
> This is, as you can see, quite convoluted and finicky, which is why I 
> automate the
> entire process, and created my slingshot project at github to encapsulate all 
> the
> make rules and helper scripts for reuse, so that all I type to make a release 
> is:
>
>      make release
>
> And after testing the rockspecs from github, I upload to the moonscript Rock 
> repo
> with:
>
>      luarocks upload lyaml-5.1.0-1.rockspec
>
> I imagine it would be reasonably straight forward to adapt my process for any 
> web
> based DVCS.
>
> HTH,
Thanks for the detailed answer Gary,

I also used the work flow you described previously.
I wanted to know it there was a shortcut avoiding uploading rocks.
Apparently not...

Thanks a lot.
Kevin

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to