Skip to content

Commit bab38cc

Browse files
author
Derek
committed
fix: use full path for rustc verification after rustup migration
Now that Rust is installed via rustup (~/.cargo/bin/rustc) instead of distro packages (/usr/bin/rustc), the verify task needs the full path since ~/.cargo/bin is not in Ansible's default PATH.
1 parent e4275c1 commit bab38cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ansible/roles/developer_core/tasks/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
when: ansible_facts['distribution'] == 'MacOSX'
152152

153153
- name: Verify Rust (Linux)
154-
ansible.builtin.command: rustc --version
154+
ansible.builtin.command: "{{ user_home }}/.cargo/bin/rustc --version"
155155
register: verify_rust
156156
changed_when: false
157157
failed_when: verify_rust.rc != 0

0 commit comments

Comments
 (0)