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

Reply via email to