Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove RUSTFLAG from docs workflow #5517

Merged
merged 4 commits into from
Aug 5, 2024
Merged

chore: remove RUSTFLAG from docs workflow #5517

merged 4 commits into from
Aug 5, 2024

Conversation

guillaumemichel
Copy link
Contributor

Description

"--cfg docsrs" shouldn't be part of RUSTFLAGS but only of RUSTDOCFLAGS.

This should fix failing docs Actions.

Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Gui!

@jxs jxs added the send-it label Aug 5, 2024
@mergify mergify bot merged commit 732ade6 into master Aug 5, 2024
72 checks passed
@mergify mergify bot deleted the chore/docs-flag branch August 5, 2024 15:47
umgefahren added a commit to umgefahren/rust-libp2p that referenced this pull request Aug 6, 2024
mergify bot pushed a commit that referenced this pull request Aug 6, 2024
As @guillaumemichel already found out, passing the `docsrs` cfg to rustc now breaks the documentation build. Although I couldn't exactly reproduce the docs.rs build env (everyone is welcome to try; it's explained [here](https://github.com/rust-lang/docs.rs/blob/master/README.md#build-subcommand)) it's safe to assume that the same problem will occur when we push to docs.rs.

Passing the docsrs flag is also no longer required since it's now automatically passed to rustdoc when building on docs.rs. Explanation: https://docs.rs/about/builds#detecting-docsrs

Pull-Request: #5535.
TimTinkers pushed a commit to unattended-backpack/rust-libp2p that referenced this pull request Sep 14, 2024
`"--cfg docsrs"` shouldn't be part of `RUSTFLAGS` but only of `RUSTDOCFLAGS`.

This should fix failing docs Actions.

Pull-Request: libp2p#5517.
TimTinkers pushed a commit to unattended-backpack/rust-libp2p that referenced this pull request Sep 14, 2024
…docs.rs

As @guillaumemichel already found out, passing the `docsrs` cfg to rustc now breaks the documentation build. Although I couldn't exactly reproduce the docs.rs build env (everyone is welcome to try; it's explained [here](https://github.com/rust-lang/docs.rs/blob/master/README.md#build-subcommand)) it's safe to assume that the same problem will occur when we push to docs.rs.

Passing the docsrs flag is also no longer required since it's now automatically passed to rustdoc when building on docs.rs. Explanation: https://docs.rs/about/builds#detecting-docsrs

Pull-Request: libp2p#5535.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants