Skip to content

Commit 46a30e4

Browse files
committed
reproduce yanked crates in lock file (#1240)
We could easily write the output to a file and run a grep on it to fail the build, but that would make CI flaky. Instead, make it easy to detect this issue locally with `just find-yanked`.
1 parent c1e4c62 commit 46a30e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: install Rust via Rustup
4343
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal;
4444
- uses: Swatinem/rust-cache@v2
45-
- run: /github/home/.cargo/bin/cargo build --no-default-features --features max-pure
45+
- run: /github/home/.cargo/bin/cargo install --debug --locked --no-default-features --features max-pure --path .
4646

4747
test:
4848
runs-on: ubuntu-latest

justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,7 @@ fmt:
242242
cargo +nightly fmt --all -- --config-path rustfmt-nightly.toml
243243
cargo +stable fmt --all -- --check
244244
just --fmt --unstable
245+
246+
# Cancel this after the first few seconds, as yanked crates will appear in warnings.
247+
find-yanked:
248+
cargo install --debug --locked --no-default-features --features max-pure --path .

0 commit comments

Comments
 (0)