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

refactor(pacman): synchronous artifact download #396

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

deer-wmde
Copy link
Contributor

I experienced two issues with the async download portion of pacman:

  1. GitHub doesn't seem to like it if you hammer them with downloads
    • I'd see erros like wget: bad address 'codeload.github.com' randomly for some downloads
  2. the set -e option does not work for this subshell approach, so if something goes wrong (like 1.) the script continues until it eventually errors later

So I refactored the complex subshell async download portion to a normal for-loop with a 2 second delay between each download, which seems to work fine.

@deer-wmde deer-wmde merged commit ceb1dc6 into main Oct 4, 2023
9 checks passed
@deer-wmde deer-wmde deleted the fix/pacman-dos branch October 4, 2023 09:27
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