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

Fix fetch-configlet script #438

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

workingjubilee
Copy link
Contributor

Shamelessly dupes @coriolinus' fix: exercism/rust#929

"Looks like Github has recently started returning non-uppercased
HTTP headers, at least some of the time. This broke the script,
which looked for a case-sensitive 'Location' header to find the
newest version. We can see this problem in spurious build failures like this."

"This fixes the script such that it no longer cares whether the initial
L is capital or not, and if it breaks again in the future, it will
give a more informative error."

Shamelessly dupes @coriolinus' fix: exercism/rust#929

"Looks like Github has recently started returning non-uppercased
HTTP headers, at least some of the time. This broke the script,
which looked for a case-sensitive 'Location' header to find the
newest version. We can see this problem in spurious build failures like this."

"This fixes the script such that it no longer cares whether the initial
L is capital or not, and if it breaks again in the future, it will
give a more informative error."
@workingjubilee
Copy link
Contributor Author

workingjubilee commented Mar 19, 2020

Aha, got a partial fix, now that fetch-configlet runs sometimes at all (the gcc build passed, not the clang one though). Will also review exercism/bash#424 to see what they did.

Riffing off of @glennj's fix exercism/bash#424

This fixes the problem by adding retries to the curl attempt, combined
with the case-sensitivity fix. Also some of the logic has been reflowed.
Most notably, we now dynamically check for what archive extension to use.
@ryanplusplus
Copy link
Member

👍

@ryanplusplus ryanplusplus merged commit 2665ca0 into exercism:master Mar 19, 2020
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