Skip to content

ci: Use cargo xtask fmt --check #1348

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

Merged
merged 3 commits into from
Aug 24, 2024

Conversation

nicholasbishop
Copy link
Member

Fixes #1198

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

run: |
rustup component add rustfmt
cargo fmt --all -- --check
curl -L --fail --output /tmp/yamlfmt.tar.xz https://github.com/google/yamlfmt/releases/download/v${YFV}/yamlfmt_${YFV}_Linux_x86_64.tar.gz
Copy link
Member

@phip1611 phip1611 Aug 24, 2024

Choose a reason for hiding this comment

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

nit: If we add nix, this could be a simple nix-shell --run "cargo xtask fmt --check". Similar to here https://github.com/rust-osdev/uefi-rs/blob/main/.github/workflows/developer_productivity.yml#L50

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, but looks like a bit of additional work is needed since the nix files currently fail the format check, and also https://github.com/nix-community/nixpkgs-fmt has been deprecated. I'll go ahead and merge the version without nix, and we can follow up with another PR later.

Copy link
Member

Choose a reason for hiding this comment

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

Ohh.. I had no clue that it is deprecated (to be fair, only since very recently) . Thanks!

@nicholasbishop nicholasbishop force-pushed the bishop-fmt branch 3 times, most recently from 4ffcc24 to e5d5d50 Compare August 24, 2024 17:42
@nicholasbishop nicholasbishop added this pull request to the merge queue Aug 24, 2024
Merged via the queue into rust-osdev:main with commit 3218a54 Aug 24, 2024
30 checks passed
@nicholasbishop nicholasbishop deleted the bishop-fmt branch August 24, 2024 17:50
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.

Use cargo xtask fmt --check in CI
2 participants