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.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part