Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry failed release downloads from test location #183

Merged
merged 4 commits into from
Oct 23, 2017

Conversation

carolynvs
Copy link
Collaborator

Docker publishes releases that don't have a prerelease suffix (e.g. -rc) to the test location (look in https://download.docker.com/mac/static/test/x86_64/ and you'll see 17.10.0-ce). Then some time later, when the version is ready for a final release, they publish a new release with the same version to the stable location.

Since we can't tell where to find a version based on its value anymore, first try downloading from stable, then if that fails, check if there's a test release available.

Related to #170.

I realize these are only useful tests at this point in time,
but the test matrix is so complex, it's worth it for now.
@carolynvs carolynvs force-pushed the install-fallback-location branch from 638f27a to 6822c4b Compare October 20, 2017 19:17
* Move logic for downloading versions directly into the version struct
* When downloading a non-prerelease version, if it fails, check if it's
  available on the test location. 😆
Now that we don't check the version up-front,
we need better messages/handling when the version is bad.
@carolynvs carolynvs force-pushed the install-fallback-location branch from c83a337 to b326b11 Compare October 20, 2017 21:23
@carolynvs carolynvs merged commit 7651619 into howtowhale:master Oct 23, 2017
@carolynvs carolynvs deleted the install-fallback-location branch October 23, 2017 15:23
@carolynvs carolynvs mentioned this pull request Oct 23, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant