Skip to content

Commit 89c1f47

Browse files
committed
Workaround link errors when running clippy on CI
This works around link errors that result from cargo looking for for binaries in `~/.cargo/bin` that were installed by default on the Github job runner. See oxalica/rust-overlay#54 for details.
1 parent f58c358 commit 89c1f47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
- name: Install Nix
5757
uses: cachix/install-nix-action@v17
5858

59+
# This is a workaround for https://github.com/oxalica/rust-overlay/issues/54,
60+
# avoiding link errors when running cargo commands with `nix develop`.
61+
- name: Remove binaries installed in ~/.cargo/bin
62+
run: rm --recursive --force --verbose ~/.cargo/bin
63+
5964
- name: Run cargo clippy
6065
run: nix develop .#${{ matrix.rust-toolchain }} --command cargo clippy -- --deny warnings
6166

0 commit comments

Comments
 (0)