Jump to page: 1 2
Thread overview
Adding DMDScript to dub
Dec 13, 2014
Walter Bright
Dec 13, 2014
Rikki Cattermole
Dec 13, 2014
Rikki Cattermole
Dec 13, 2014
Walter Bright
Dec 15, 2014
Martin Nowak
Dec 15, 2014
Walter Bright
Dec 15, 2014
Rikki Cattermole
Dec 15, 2014
Walter Bright
Dec 15, 2014
Rikki Cattermole
Dec 15, 2014
Jacob Carlborg
Dec 15, 2014
Martin Nowak
Dec 15, 2014
Jacob Carlborg
Dec 15, 2014
Walter Bright
Dec 15, 2014
Jacob Carlborg
Dec 15, 2014
Martin Nowak
Dec 15, 2014
Walter Bright
December 13, 2014
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.

December 13, 2014
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.
December 13, 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
December 13, 2014
On 12/12/2014 5:58 PM, Rikki Cattermole wrote:
> On 13/12/2014 2:53 p.m., Walter Bright wrote:
>> 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.

Thanks, I added "dmdscript" before the : and it registered.
December 15, 2014
On 12/13/2014 02:53 AM, 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.
>

You should the full error, it says.

Branch ~test: Package names may not be empty. Check dub.json.
December 15, 2014
On 12/14/2014 8:53 PM, Martin Nowak wrote:
> On 12/13/2014 02:53 AM, 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.
>>
>
> You should the full error, it says.
>
> Branch ~test: Package names may not be empty. Check dub.json.

That's a new error, I fixed the original per Rikki's advice. I don't understand it, either. Shouldn't it be looking at master, not branch test?
December 15, 2014
On 15/12/2014 7:12 p.m., Walter Bright wrote:
> On 12/14/2014 8:53 PM, Martin Nowak wrote:
>> On 12/13/2014 02:53 AM, 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.
>>>
>>
>> You should the full error, it says.
>>
>> Branch ~test: Package names may not be empty. Check dub.json.
>
> That's a new error, I fixed the original per Rikki's advice. I don't
> understand it, either. Shouldn't it be looking at master, not branch test?

Test branch: https://github.com/DigitalMars/DMDScript/blob/test/dub.json
Master branch: https://github.com/DigitalMars/DMDScript/blob/test/dub.json

Same issue, just hasn't been updated.
December 15, 2014
On 12/14/2014 10:21 PM, Rikki Cattermole wrote:
> On 15/12/2014 7:12 p.m., Walter Bright wrote:
>>> Branch ~test: Package names may not be empty. Check dub.json.
>>
>> That's a new error, I fixed the original per Rikki's advice. I don't
>> understand it, either. Shouldn't it be looking at master, not branch test?
>
> Test branch: https://github.com/DigitalMars/DMDScript/blob/test/dub.json
> Master branch: https://github.com/DigitalMars/DMDScript/blob/test/dub.json
>
> Same issue, just hasn't been updated.

How do I get dub to stop looking at the test branch?
December 15, 2014
On 15/12/2014 8:44 p.m., Walter Bright wrote:
> On 12/14/2014 10:21 PM, Rikki Cattermole wrote:
>> On 15/12/2014 7:12 p.m., Walter Bright wrote:
>>>> Branch ~test: Package names may not be empty. Check dub.json.
>>>
>>> That's a new error, I fixed the original per Rikki's advice. I don't
>>> understand it, either. Shouldn't it be looking at master, not branch
>>> test?
>>
>> Test branch: https://github.com/DigitalMars/DMDScript/blob/test/dub.json
>> Master branch:
>> https://github.com/DigitalMars/DMDScript/blob/test/dub.json
>>
>> Same issue, just hasn't been updated.
>
> How do I get dub to stop looking at the test branch?

Dammit looks like I posted test branch link as both.

Dub shouldn't be looking for the branch unless its explicitly told to. The test branch is wrong for the dub files. Master is correct.
However if your git repo locally is on test branch then just change to master.

TLDR
$ git checkout master
And most likely want to merge changes for dub files back into test branch from master.
December 15, 2014
On 2014-12-15 08:44, Walter Bright wrote:

> How do I get dub to stop looking at the test branch?

I've complained about this before. As far as I know it's not currently possible. I would rather tell dub myself which versions are available. Not making all tags available that match a pattern.

-- 
/Jacob Carlborg
« First   ‹ Prev
1 2