Skip to content

Deny mdbook-linkcheck warnings#1016

Merged
ehuss merged 1 commit intorust-lang:masterfrom
Urgau:problem-matcher-mdbook
Mar 1, 2026
Merged

Deny mdbook-linkcheck warnings#1016
ehuss merged 1 commit intorust-lang:masterfrom
Urgau:problem-matcher-mdbook

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Mar 1, 2026

Add a problem matcher to GitHub can show the warnings.

Would have avoided #1015.

Warning in CI: https://github.com/rust-lang/rust-forge/actions/runs/22433371335/job/64957025549#step:6:331

An alternative would be to deny all warnings. EDIT: Changed to that.

r? internal-sites

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 1, 2026
@ehuss
Copy link
Contributor

ehuss commented Mar 1, 2026

I think it would be fine to fail the build if there is a problem with links. That can be done by setting the environment variable MDBOOK_OUTPUT__LINKCHECK__WARNING_POLICY=error.

@Urgau Urgau force-pushed the problem-matcher-mdbook branch from a22c470 to b4f9cf4 Compare March 1, 2026 16:30
@Urgau Urgau changed the title Add problem matcher for mdbook warnings and errors Deny mdbook-linkcheck warnings Mar 1, 2026
@Urgau
Copy link
Member Author

Urgau commented Mar 1, 2026

Adjusted the CI to deny the warnings.

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

@ehuss ehuss merged commit 0a8fd96 into rust-lang:master Mar 1, 2026
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants