From 5323c1b570f2ccca02306d0394b76d88d1970b90 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 22 Aug 2026 17:05:39 +0800 Subject: [PATCH 1/2] chore: migrate HawkEye to v7 --- .github/workflows/ci.yml | 2 +- licenserc.toml | 10 ++++++---- xtask/src/main.rs | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd756c9..67c45cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@v2 with: - tool: typos-cli,taplo-cli,hawkeye + tool: typos-cli,taplo-cli,hawkeye@7.0.0 - run: cargo +nightly x lint test: diff --git a/licenserc.toml b/licenserc.toml index 9ce2ed4..f77d2f3 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -12,10 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -headerPath = "Apache-2.0.txt" +[header] +builtin = "Apache-2.0" +[files] includes = ['**/*.proto', '**/*.rs', '**/*.yml', '**/*.yaml', '**/*.toml'] -[properties] -copyrightOwner = "FastLabs Developers" -inceptionYear = 2025 +[props] +copyright_owner = "FastLabs Developers" +inception_year = 2025 diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0710f5c..fb0b0e2 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -168,10 +168,10 @@ fn make_clippy_cmd(fix: bool) -> StdCommand { } fn make_hawkeye_cmd(fix: bool) -> StdCommand { - ensure_installed("hawkeye", "hawkeye"); + ensure_installed("hawkeye", "hawkeye@7.0.0"); let mut cmd = find_command("hawkeye"); if fix { - cmd.args(["format", "--fail-if-updated=false"]); + cmd.args(["format"]); } else { cmd.args(["check"]); } From e68c6b484de5b996ffa6996d87d93a2fa45d4ee4 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 22 Aug 2026 19:09:15 +0800 Subject: [PATCH 2/2] chore: install latest HawkEye --- .github/workflows/ci.yml | 2 +- xtask/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67c45cc..bd756c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@v2 with: - tool: typos-cli,taplo-cli,hawkeye@7.0.0 + tool: typos-cli,taplo-cli,hawkeye - run: cargo +nightly x lint test: diff --git a/xtask/src/main.rs b/xtask/src/main.rs index fb0b0e2..f32a6be 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -168,7 +168,7 @@ fn make_clippy_cmd(fix: bool) -> StdCommand { } fn make_hawkeye_cmd(fix: bool) -> StdCommand { - ensure_installed("hawkeye", "hawkeye@7.0.0"); + ensure_installed("hawkeye", "hawkeye"); let mut cmd = find_command("hawkeye"); if fix { cmd.args(["format"]);