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

Improve fetching Coder binary #222

Merged
merged 1 commit into from
Mar 3, 2024
Merged

Improve fetching Coder binary #222

merged 1 commit into from
Mar 3, 2024

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Mar 2, 2024

  • Add more logging (the main goal of this commit).
  • Break out parts specific to the binary and add tests for those parts.
  • Check the version before making the request.
  • Avoid deleting the old binary right away, mostly to make it possible
    to debug why the plugin thought it was invalid. It will be cleaned up
    on the next download, so at most we have one.
  • Clean up left-over temporary binaries too.
  • Validate downloaded binary.
  • Catch error on writing (for example if we are downloading the binary
    to a read-only location).
    Related: Add option to disable downloading Coder binary even if out of date or missing #193

@code-asher code-asher force-pushed the asher/fetch-binary branch 7 times, most recently from 75ea0f9 to 52a99d1 Compare March 2, 2024 01:41
- Add more logging (the main goal of this commit).
- Break out parts specific to the binary and add tests for those parts.
- Check the version before making the request.
- Avoid deleting the old binary right away, mostly to make it possible
  to debug why the plugin thought it was invalid.  It will be cleaned up
  on the next download, so at most we have one.
- Clean up left-over temporary binaries too.
- Validate downloaded binary.
- Catch error on writing (for example if we are downloading the binary
  to a read-only location).
@code-asher code-asher force-pushed the asher/fetch-binary branch from 52a99d1 to d7e485f Compare March 2, 2024 01:47
@code-asher code-asher merged commit 8546f4f into main Mar 3, 2024
2 checks passed
@code-asher code-asher deleted the asher/fetch-binary branch March 3, 2024 23:25
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