Skip to content

license header checks fails with latest hawkeye dependency #24627

Description

@Omega359

Describe the bug

I had to do a clean system rebuild this morning (thanks WSL) and after rebuilding my system rust_fmt.sh was failing with errors:

[rust_lint.sh] Running license_header.sh
[license_header.sh] `hawkeye check --config licenserc.toml`
error: cannot load config
  caused by: ConfigInvalid => cannot parse config file licenserc.toml, source: TOML parse error at line 26, column 1
   |
26 | excludes = [
   | ^^^^^^^^
unknown field `excludes`, expected one of `header`, `files`, `props`, `git`, `styles`, `rules`

It seems the latest version of hawkeye (7.0.0) changed it's config file format and the one in datafusion is no longer compatible. See https://github.com/fast/hawkeye/blob/v7.0.0/MIGRATE.md for details

The temporary workaround is to force hawkeye to version 6.5.1 via cargo install hawkeye --version 6.5.1 --locked

To Reproduce

upgrade hawkeye to the latest version, run ./dev/rust_lint.sh.

Expected behavior

rust lint script completes successfully on a fresh checkout of main.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions