dub.json dependencies per configuration?

Arjan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 10 23:49:04 PST 2015


On Wednesday, 11 February 2015 at 01:06:02 UTC, Mike Parker wrote:
> On 2/11/2015 8:38 AM, Arjan wrote:
>> Snippet from: 
>> https://github.com/buggins/ddbc/blob/master/dub.json#L7
>>
>> ddbc has a "dependencies" on "mysql-native": ">=0.0.12". But 
>> this is
>> only true for "configurations": "MySQL".
>> Is it allowed to put the dependency within the configuration 
>> section for
>> "MySQL?.
>
> Yes.

I moved the "dependencies" into the configuration of "MySQL", but 
no dice.
It is accepted by dub but does not make a difference when 
selecting an other configuration. e.g.
"dub build -f -c SQLite -a x86" still fetches and builds the 
"mysql-native".

Is this behavior of dub expected or a bug?



More information about the Digitalmars-d-learn mailing list