On 28 January 2014 10:31, Thijs Schreijer <[email protected]> wrote:
>> -----Original Message-----
>> From: Tom N Harris [mailto:[email protected]]
>> Sent: dinsdag 28 januari 2014 1:54
>> To: [email protected]
>> Subject: Re: [Luarocks-developers] variables for rockspec
>>
>> On Sunday, January 26, 2014 10:08:36 PM Thijs Schreijer wrote:
>> > Yes, for published rocks. No, for SCM rockspecs.
>> >
>> > While testing stuff on a different platform it would allow me to
>> > fetch/build/install a development branch with a single command. I
>> > don't want to burden Hisham with a new rockspec for each development
>> branch.
>> >
>>
>> If this is for testing only and won't be published, then you won't be
>> bothering Hisham in the first place. Just create your own rockspecs for
>> private use. Then copy the rockspecs to the target machine, or host your own
>> rocks server if you want to get fancy.
>>
>> As I said, the sticking point is that a rock with the same name and version
>> would install different things depending on the install flags.
>
> Well, for an SCM rock, that is no problem, as it generally uses the head of 
> the master branch, so it's a moving target anyway. Its sole purpose is to 
> install the latest code, and hence unpredictable version.
>
> But, having said that, enabling such a thing would also enable it for common, 
> properly versioned, rocks. And that might be something you don't want.
> Then again; a rock includes the source and hence the results are fixed...
>
> @Hisham; what do you think?

I agree with Tom's concern:

>> As I said, the sticking point is that a rock with the same name and version
>> would install different things depending on the install flags.

Variables in rockspecs are really the first step towards use-flags,
which are popular in some Linux distros (Gentoo, etc) but also open a
whole other can of worms. From my experience at GoboLinux, these
things go out of hand easily: testing a rockspec suddenly becomes
testing the whole matrix of possible variable combinations.

A --branch feature, specifically for scm rockspecs, while not as
general, is much easier to keep under control.

-- Hisham

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to