Skip to content

Commit

Permalink
reproduce yanked crates in lock file (#1240)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Byron committed Dec 23, 2023
1 parent c1e4c62 commit 46a30e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: install Rust via Rustup
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal;
- uses: Swatinem/rust-cache@v2
- run: /github/home/.cargo/bin/cargo build --no-default-features --features max-pure
- run: /github/home/.cargo/bin/cargo install --debug --locked --no-default-features --features max-pure --path .

test:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,7 @@ fmt:
cargo +nightly fmt --all -- --config-path rustfmt-nightly.toml
cargo +stable fmt --all -- --check
just --fmt --unstable

# Cancel this after the first few seconds, as yanked crates will appear in warnings.
find-yanked:
cargo install --debug --locked --no-default-features --features max-pure --path .

0 comments on commit 46a30e4

Please sign in to comment.