fix: stop using curl --fail-with-body and remove jq dependency#193
Merged
GuillaumeLagrange merged 2 commits intomainfrom Mar 5, 2026
Merged
Conversation
d765dc1 to
ed49daa
Compare
ed49daa to
7fa35d2
Compare
adriencaccia
approved these changes
Mar 4, 2026
78590ff to
1ac3596
Compare
1ac3596 to
f5e5fb3
Compare
Contributor
Author
|
@adriencaccia re-requesting a review for the second commit |
f5e5fb3 to
9e74db5
Compare
adriencaccia
approved these changes
Mar 5, 2026
This allows the path to be properly updated when installing on a minimal
system
From the generated installer by cargo-dist
```
add_install_dir_to_ci_path() {
# Attempt to do CI-specific rituals to get the install-dir on PATH faster
local _install_dir="$1"
# If GITHUB_PATH is present, then write install_dir to the file it refs.
# After each GitHub Action, the contents will be added to PATH.
# So if you put a curl | sh for this script in its own "run" step,
# the next step will have this dir on PATH.
#
# Note that GITHUB_PATH will not resolve any variables, so we in fact
# want to write install_dir and not install_dir_expr
if [ -n "${GITHUB_PATH:-}" ]; then
ensure echo "$_install_dir" >> "$GITHUB_PATH"
fi
}
```
9e74db5 to
c61f6b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #192
Improves compatibility as much as possible
Switches
jquse for https://github.com/actions/github-script to execute a basic nodejs script to parse the jsonWe also drop the
fail-with-bodyto maximize compatibilityWith older versions of
curlWith newer versions of curl