Skip to content

Commit

Permalink
Improve 'cargo tree' check (#1200)
Browse files Browse the repository at this point in the history
The '! cargo tree -i openssl-sys' command ignores when 'cargo tree'
fails for other reasons than not depending on the openssl-sys crate.
This commit changes the command to propagate such a failure.
  • Loading branch information
stefankreutz authored Aug 5, 2023
1 parent b1b32e7 commit d6ea7bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check that rustls-tls feature doesn't depend on OpenSSL
shell: bash
run: |
! cargo tree --package lychee --no-default-features --features rustls-tls -i openssl-sys
run: test -z "$( cargo tree --package lychee --no-default-features --features rustls-tls --prefix none | sed -n '/^openssl-sys /p' )"
- name: Run cargo check with default features
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit d6ea7bb

Please sign in to comment.