www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Adding DMDScript to dub

reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Dec 12 2014
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
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.
Dec 12 2014
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
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
Dec 12 2014
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
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.
Dec 12 2014
prev sibling parent reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
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.
Dec 14 2014
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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?
Dec 14 2014
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
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.
Dec 14 2014
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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?
Dec 14 2014
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
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.
Dec 15 2014
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Dec 15 2014
next sibling parent reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
On 12/15/2014 09:31 AM, Jacob Carlborg wrote:
 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.
Well here is the code https://github.com/D-Programming-Language/dub-registry, right?
Dec 15 2014
parent Jacob Carlborg <doob me.com> writes:
On 2014-12-15 09:41, Martin Nowak wrote:

 Well here is the code
 https://github.com/D-Programming-Language/dub-registry, right?
I don't have time to work on every single project myself. -- /Jacob Carlborg
Dec 15 2014
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 12/15/2014 12:31 AM, Jacob Carlborg wrote:
 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.
Would it work if I deleted the tags from the test branch?
Dec 15 2014
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2014-12-15 10:12, Walter Bright wrote:

 Would it work if I deleted the tags from the test branch?
I don't know, at least previously Dub tracked branches as well. -- /Jacob Carlborg
Dec 15 2014
prev sibling parent reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
On 12/15/2014 10:12 AM, Walter Bright wrote:
 Would it work if I deleted the tags from the test branch?
Deleting the dub.json on the test branch should work. But you can also leave things as they are, the test branch isn't available. http://code.dlang.org/packages/dmdscript
Dec 15 2014
parent Walter Bright <newshound2 digitalmars.com> writes:
On 12/15/2014 8:49 AM, Martin Nowak wrote:
 On 12/15/2014 10:12 AM, Walter Bright wrote:
 Would it work if I deleted the tags from the test branch?
Deleting the dub.json on the test branch should work. But you can also leave things as they are, the test branch isn't available. http://code.dlang.org/packages/dmdscript
Ok, guess I'll leave it be, then!
Dec 15 2014