RejectedSoftware Forums

Sign up

Download deps but don't build?

I might be missing something obvious, but it there a simple command to
have dub resolve and download the dependencies for the project in the
current working directory?

This would help me adjust my travis-ci configs so that sporadic repo
outages are (more likely to be) correctly recognized by travis as a "job
error" rather than a "failed test".

Re: Download deps but don't build?

On Thu, 8 Feb 2018 23:43:26 -0500, Nick Sabalausky wrote:

I might be missing something obvious, but it there a simple command to
have dub resolve and download the dependencies for the project in the
current working directory?

This would help me adjust my travis-ci configs so that sporadic repo
outages are (more likely to be) correctly recognized by travis as a "job
error" rather than a "failed test".

Have you tried dub upgrade?

Re: Download deps but don't build?

Am 08.03.2018 um 18:27 schrieb Timoses:

On Thu, 8 Feb 2018 23:43:26 -0500, Nick Sabalausky wrote:

I might be missing something obvious, but it there a simple command to
have dub resolve and download the dependencies for the project in the
current working directory?

This would help me adjust my travis-ci configs so that sporadic repo
outages are (more likely to be) correctly recognized by travis as a "job
error" rather than a "failed test".

Have you tried dub upgrade?

If a selections file is present, then dub upgrade --missing-only
should avoid upgrading any versions, but still download the necessary
packages.

Re: Download deps but don't build?

On 03/08/2018 02:42 PM, Sönke Ludwig wrote:

If a selections file is present, then dub upgrade --missing-only
should avoid upgrading any versions, but still download the necessary
packages.

Ahh, excellent. Just what I was looking for, thanks.