We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0f33f commit 5cbd749Copy full SHA for 5cbd749
1 file changed
.github/actions/setup/action.yml
@@ -81,6 +81,14 @@ runs:
81
- name: Install Rust Components
82
run: |
83
export active_rust_toolchain=$(rustup show active-toolchain | cut -d' ' -f1)
84
+ # NOTE: Workaround for "error: failed to install component: 'rustfmt-preview-x86_64-unknown-linux-gnu', detected conflict: 'bin/cargo-fmt'"
85
+ active_rust_bin_dir=$(dirname "$(rustup which rustc --toolchain "${active_rust_toolchain}")")
86
+
87
+ rm -f "${active_rust_bin_dir}/cargo-fmt"
88
+ rm -f "${active_rust_bin_dir}/rustfmt"
89
+ rm -f ~/.cargo/bin/cargo-fmt
90
+ rm -f ~/.cargo/bin/rustfmt
91
92
rustup component add --toolchain ${active_rust_toolchain} rustfmt clippy
93
shell: bash
94
0 commit comments