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

feat: fetch updater without GitHub API call #1052

Merged
merged 1 commit into from
May 16, 2024

Conversation

mistydemeo
Copy link
Contributor

Instead of querying releases and using that to see if an asset is available for our architecture, just manually construct the URL and use a HEAD request to see if it exists or not.

This should improve reliability when checking for new updater releases as a part of the local build process.

Instead of querying releases and using that to see if an asset is available for our
architecture, just manually construct the URL and use a HEAD request to see if it
exists or not.
@mistydemeo mistydemeo force-pushed the fetch-updater-without-api-call branch from 5a82089 to 8d4ad2b Compare May 15, 2024 20:36
@mistydemeo
Copy link
Contributor Author

Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so i love this strategy. i have known APIs to be weird about HEAD requests... so we should keep an eye on it. if people keep good hygiene it should work well and fine, but people do weird stuff lol. e.g. https://community.cloudflare.com/t/when-cache-everything-head-requests-will-be-turned-into-get-requests/363090

@mistydemeo
Copy link
Contributor Author

We can definitely keep an eye on GitHub's behaviour here and hope they don't accidentally make a weird mistake 😅

@mistydemeo mistydemeo merged commit a5f5c7d into main May 16, 2024
16 checks passed
@mistydemeo mistydemeo deleted the fetch-updater-without-api-call branch May 16, 2024 17:39
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.

None yet

2 participants