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

chore: make downloadPrebuilt a little more reliable #20401

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Sep 7, 2023

Makes the prebuilt installation a bit more reliable:

  • Check for 200
  • Check for an executable header (MZ, ELF, etc)
  • Download to a .temp file until we're certain the file is valid
  • If multiple requests for a tool are made, only run one task

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@mmastrac mmastrac enabled auto-merge (squash) September 7, 2023 16:53
@mmastrac mmastrac merged commit 8eda8c0 into denoland:main Sep 7, 2023
12 checks passed
bartlomieju pushed a commit to bartlomieju/deno that referenced this pull request Sep 8, 2023
Makes the prebuilt installation a bit more reliable:

 - Check for 200
 - Check for an executable header (MZ, ELF, etc)
 - Download to a .temp file until we're certain the file is valid
 - If multiple requests for a tool are made, only run one task
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.

2 participants