From 0825f85b281e8d1085825317cfbb0d5af684dce8 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 a7627a8..d05ec3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,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 x lint msrv: diff --git a/licenserc.toml b/licenserc.toml index 2b80854..d920c2c 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 = 2024 +[props] +copyright_owner = "FastLabs Developers" +inception_year = 2024 diff --git a/xtask/src/main.rs b/xtask/src/main.rs index ed4daeb..0ca3fd3 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -165,10 +165,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 fe4b4ffe7fd4c2e702a811ec17d22e0bfc0a1042 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 22 Aug 2026 19:09:03 +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 d05ec3d..a7627a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,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 x lint msrv: diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 0ca3fd3..abfb8c4 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -165,7 +165,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"]);