Check cargo sort in make check (#2572)

This is run in CI, so running this offline avoids an unnecessary CI
failure.
This commit is contained in:
Johannes Agricola 2025-03-22 11:53:03 +01:00 committed by GitHub
parent ad32993721
commit dcd9a00ff3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* support loading custom syntax highlighting themes from a file [[@acuteenvy](https://github.com/acuteenvy)] ([#2565](https://github.com/gitui-org/gitui/pull/2565))
* Select syntax highlighting theme out of the defaults from syntect [[@vasilismanol](https://github.com/vasilismanol)] ([#1931](https://github.com/extrawurst/gitui/issues/1931))
* new command-line option to override the default log file path (`--logfile`) [[@acuteenvy](https://github.com/acuteenvy)] ([#2539](https://github.com/gitui-org/gitui/pull/2539))
* dx: `make check` checks Cargo.toml dependency ordering using `cargo sort` [[@naseschwarz](https://github.com/naseschwarz)]
### Changed
* improve syntax highlighting file detection [[@acuteenvy](https://github.com/acuteenvy)] ([#2524](https://github.com/extrawurst/gitui/pull/2524))

View file

@ -1,5 +1,5 @@
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug sort
ARGS=-l
# ARGS=-l -d ~/code/extern/kubernetes
@ -94,7 +94,7 @@ clippy:
clippy-nightly:
cargo +nightly clippy --workspace --all-features
check: fmt clippy test deny
check: fmt clippy test deny sort
check-nightly:
cargo +nightly c
@ -104,6 +104,9 @@ check-nightly:
deny:
cargo deny check
sort:
cargo sort -c -w "."
install:
cargo install --path "." --offline --locked