From 3438d42404a557cb02b4691bf0177e831d25424f Mon Sep 17 00:00:00 2001 From: Benno Zeeman Date: Fri, 8 Nov 2024 14:22:38 +0100 Subject: [PATCH] ci: fix cargo doc check --- .github/workflows/merge.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 14c2e55821..afbf008f8c 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -79,9 +79,12 @@ jobs: run: cargo clippy --all-targets --all-features -- -Dwarnings - name: Check documentation - # Deny certain `rustdoc` lints that are unwanted. - # See https://doc.rust-lang.org/rustdoc/lints.html for lints that are 'warning' by default. - run: RUSTDOCFLAGS="--deny=warnings" cargo doc --no-deps + # Deny certain `rustdoc` lints that are unwanted with `RUSTDOCFLAGS`. See + # https://doc.rust-lang.org/rustdoc/lints.html for lints that are 'warning' by default. + # + # We exclude autonomi-cli because it is not published and conflicts with the `autonomi` crate name, + # resulting in an error when building docs. + run: RUSTDOCFLAGS="--deny=warnings" cargo doc --no-deps --workspace --exclude=autonomi-cli - name: Check local is not a default feature shell: bash