-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update rust version #93
Changes from all commits
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -30,11 +30,11 @@ | |||||||||||||||
executable: /bin/bash | ||||||||||||||||
when: rustup_installed.rc != 0 | ||||||||||||||||
|
||||||||||||||||
- name: Update Rust to 1.80 | ||||||||||||||||
command: rustup update 1.80.0 | ||||||||||||||||
- name: Update Rust to 1.82 | ||||||||||||||||
command: rustup update 1.82.0 | ||||||||||||||||
|
||||||||||||||||
- name: Set default to 1.80 | ||||||||||||||||
command: rustup default 1.80.0 | ||||||||||||||||
- name: Set default to 1.82 | ||||||||||||||||
command: rustup default 1.82.0 | ||||||||||||||||
Comment on lines
+36
to
+37
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. 🛠️ Refactor suggestion Add error handling for default version setting. The default version setting should include error handling to ensure it completes successfully. - name: Set default to 1.82
command: rustup default 1.82.0
+ name: Set default to 1.82
+ command: rustup default 1.82.0
+ register: rust_default
+ failed_when: rust_default.rc != 0
+ changed_when: rust_default.rc == 0 📝 Committable suggestion
Suggested change
|
||||||||||||||||
|
||||||||||||||||
- name: Check if Git is installed | ||||||||||||||||
command: git --version | ||||||||||||||||
|
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.
🛠️ Refactor suggestion
Add error handling and version verification.
While the update command is correct, consider adding error handling and verification to ensure the update succeeds.
📝 Committable suggestion