-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add opensuse support #530
base: master
Are you sure you want to change the base?
Add opensuse support #530
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,17 @@ | |
|
||
set -Ee | ||
|
||
. /etc/os-release | ||
|
||
RUSTUP_NEW_INSTALL=0 | ||
|
||
# NOTE: rustup is used to allow multiple toolchain installations. | ||
if command -v rustup >/dev/null 2>&1; then | ||
rustup self update | ||
if [[ "$ID" =~ "opensuse" ]] || [[ "$ID_LIKE" =~ "opensuse" ]]; then | ||
sudo zypper up rustup | ||
else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is expected that rustup is installed from https://rustup.rs/, not by a distro package. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What should it do if rustup has been installed via a distro package? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This case can actually just be removed. It was initially done to ensure users had a version of rustup new enough to support TOML-based toolchain files. I've done it in #531 to preserve the context. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Understood! |
||
rustup self update | ||
fi | ||
else | ||
RUSTUP_NEW_INSTALL=1 | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort deps