Dub command line knowledge sought

Russel Winder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 23 01:26:21 PDT 2017


On Fri, 2017-06-23 at 08:11 +0000, Nicholas Wilson via Digitalmars-d-
learn wrote:
> On Friday, 23 June 2017 at 07:51:51 UTC, Russel Winder wrote:
> > I am likely just staring at and missing the data needed:
> > 
> > How does one invoke dub to fetch and build, and put into a 
> > place other that ~/.dub/… a package from Dub?
> 
> dub fetch foo --version=1.0.0
> mv ~/.dub/packages/foo-1.0.0 /desired/path
> dub add-path /desired/path
> 
> dunno about how to do that in one step.

This is what I feared.

The real awkwardness here is that Dub stores all the compilation
products nicely separated by platform, compiler, and configuration, and
puts the last build in a nice named place on the assumption there will
only ever be one. So generally the   
~/.dub/packages/foo-1.0.0 has to be moved as above.

Using unit-threaded as an example:

~/.dub/packages/unit-threaded-0.7.24/unit-threaded/.dub/build/library-debug-linux.posix-x86_64-ldc_2073-1AF38A4B25224ABFB5BB5ED68A0E4633

Is the location of the last debug build on linux using ldc2, but what
is that hash code, how to make that deducible so that it isn't
necessary to move, just build.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170623/3a299320/attachment-0001.sig>


More information about the Digitalmars-d-learn mailing list