Repository navigation
[Fix::ci] check formatting across the Rust workspace - #131
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
code-stylejob runsrustfmt --checkwithout any filenames. On a GitHub Actions runner with empty stdin, that exits successfully without inspecting the Rust workspace. Consequently, a green code-style job does not establish that the repository is formatted.This existing issue was identified while reviewing #128 and #129; it is already present on
mainand is independent of the proposed Actions version updates.Change
cargo fmt --all -- --checkin the code-style job so every workspace member is checked.Validation
cargo fmt --all -- --checkon the current main workspace: passed.git diff --check: passed.cargo test --workspace --all-features --locked: the four workspace unit-test binaries passed (0 tests on main); the existingcore/src/lib.rs:7doctest failed because its sample omitsCodeSnap,CodeBuilder, andWatermarkBuilderimports.cargo clippy --all-targets --all-features --locked -- -D warnings: failed with 37 pre-existing core diagnostics (including unused imports, needless references, and elided-lifetime warnings promoted to errors).The Rust source and Cargo manifests are byte-for-byte unchanged relative to main
3f6282fe16601125b72e07d7de5270bd8690a37b; these baseline failures are reported rather than hidden or expanded into unrelated fixes.No merge or release is part of this PR.