Adding DMDScript to dub

Rikki Cattermole via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 12 19:00:33 PST 2014


On 13/12/2014 2:58 p.m., Rikki Cattermole wrote:
> On 13/12/2014 2:53 p.m., Walter Bright wrote:
>> Dmitry Olshansky has graciously ported DMDScript (a Javascript engine
>> written in D) to D2.
>>
>>    https://github.com/DigitalMars/DMDScript
>>
>> I have been trying to get it into dub, but have been stalled by the
>> following when I attempt to register:
>>
>>    Repository owner: DigitalMars
>>    Repository name: DMDScript
>>
>>
>> it says in red:
>>
>>    Package names may not be empty. Check dub.json.
>>
>>
>> What does that mean? There is no "package name" field in the dub.json
>> file.
>
> "dependencies": {
>          ":engine" : "*",
>          ":ds" : "*",
>          ":ds-ext": "*"
>      },
>
> I wasn't aware that not having the package name before a : would infer
> its own subpackage.

Looks like I was right, dub repo doesn't understand this rule.

https://github.com/D-Programming-Language/dub-registry/blob/master/source/dubregistry/registry.d#L222
https://github.com/D-Programming-Language/dub-registry/blob/master/source/dubregistry/registry.d#L423


More information about the Digitalmars-d mailing list