www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub fetch

reply Russel Winder <russel winder.org.uk> writes:
Hi,

Is there a way of asking which version of package XXX  "dub fetch XXX"
will actually fetch. I would like to avoid checking the contents of
~/.dub/packages before and after.
 =20
--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
May 11 2019
parent Marco de Wild <mdwild sogyo.nl> writes:
On Saturday, 11 May 2019 at 14:27:50 UTC, Russel Winder wrote:
 Hi,

 Is there a way of asking which version of package XXX  "dub 
 fetch XXX"
 will actually fetch. I would like to avoid checking the 
 contents of
 ~/.dub/packages before and after.
Use the `--annotate` option: $ dub fetch dlangide --annotate Fetching dlangide 0.8.17... Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem.
May 12 2019