-
Notifications
You must be signed in to change notification settings - Fork 60
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
Install depends on rustc to find target triple #120
Comments
This is work in progress, but I've also run the script through shellcheck and made a few improvements such as checking if the repository returns a 404 before downloading the releases. https://gist.github.com/sjparkinson/327dc78c60ab81a06c946630b4288910 I'll make a PR to include these changes too. |
A project I maintain recently ran into the issue the current trust download script fails on systems where Please feel free to consider this not in-scope for this issue, but it would be nice if a linux system would try to download both the |
I wrote a near drop-in replacement install script that will check for https://github.com/rossmacarthur/install curl -LSfs https://rossmacarthur.github.io/install/crate.sh \
| bash -s -- --repo "japaric/cross" --to ~/.cargo/bin |
If
--target
isn't supplied there is a dependency onrustc
to find the target triple.trust/install.sh
Lines 99 to 102 in 08c86c0
trust/install.sh
Line 127 in 08c86c0
Given the usage instructions at https://github.com/japaric/trust#use-the-binary-releases-on-travis-ci, it surprised me that the script uses
rustc
to find the target triple.If we could determine
target
by using commands likeuname -a
this script would be significantly more portable.I'll try and dig up what could work across macOS and Linux.
The text was updated successfully, but these errors were encountered: