DUB: Only fetch and cache packages in dub.json without running build
Clinton
clinton.d.skakun at gmail.com
Wed Apr 11 16:16:20 UTC 2018
On Tuesday, 10 April 2018 at 15:31:41 UTC, John Colvin wrote:
> On Tuesday, 10 April 2018 at 13:50:38 UTC, Clinton wrote:
>> [...]
>
> As far as I understand it, `dub describe` fetches everything.
> Then you can cache `~/.dub/packages/`.
>
> Alternatively you can do `dub describe --cache=local` to put
> the packages in the current directory. You could then use `dub
> add-path .` or add `--cache=local` to all future calls to use
> those locally fetched packages.
>
> Even better:
> % mkdir cache
> % cd cache
> % dub describe --root=../ --cache=local
>
> and then either
> % dub build --root=../ --cache=local
> or
> % dub add-path .
> % cd ../
> % dub build
>
> which keeps things nice and clean
Just tried this on my CircleCI setup. Works perfectly! Thanks
everyone!
More information about the Digitalmars-d
mailing list