-
Notifications
You must be signed in to change notification settings - Fork 273
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
improvement: using a new release endpoint for self-update #5229
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Would this PR fix #4893? |
0a6b643
to
6e0d9d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff! Just had one question about a test.
}) | ||
|
||
it(`aborts cleanly if desired version isn't found`, async () => { | ||
const scope = nock("https://get.garden.io") | ||
scope.get("/releases/latest").reply(200, { tag_name: "0.13.0" }) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would 0.13.0 not exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is for checking that foo
cannot be downloaded. It resolves to a local server with the files in the data/self-update
directory.
* improvement: using a new release endpoint for self-update * test: fixed self-update tests to mock the release endpoint * docs: architecture flag in self-update command * improvement: better error handling when retrieving releases * test: releases endpoint failure and clarifying comments on desired version --------- Co-authored-by: Anna Mager <[email protected]>
* improvement: using a new release endpoint for self-update * test: fixed self-update tests to mock the release endpoint * docs: architecture flag in self-update command * improvement: better error handling when retrieving releases * test: releases endpoint failure and clarifying comments on desired version --------- Co-authored-by: Anna Mager <[email protected]>
#5236) * improvement: using a new release endpoint for self-update (#5229) * improvement: using a new release endpoint for self-update * test: fixed self-update tests to mock the release endpoint * docs: architecture flag in self-update command * improvement: better error handling when retrieving releases * test: releases endpoint failure and clarifying comments on desired version --------- Co-authored-by: Anna Mager <[email protected]> * fix: docs base url --------- Co-authored-by: Anna Mager <[email protected]>
What this PR does / why we need it:
Update to use a new endpoint to check for releases.
Which issue(s) this PR fixes:
Fixes #4893
Special notes for your reviewer: