Skip to content

Run Hawk in CI - #20166

Merged
charliermarsh merged 9 commits into
mainfrom
charlie/hawk-ci
Jul 7, 2026
Merged

charliermarsh merged 9 commits into
mainfrom
charlie/hawk-ci

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Summary

This adds Hawk 0.1.5 to the lint workflow and restores the hawk.toml configuration from #19565.

The configuration is updated for the current workspace, and unused public APIs are removed or restricted so Hawk passes without warnings.

In hawk.toml, preserve-uniform-field-visibility = true keeps a struct's fields at a common visibility when at least one field requires that scope; for example, Hawk will not make an otherwise-unused field private when a sibling must remain pub(super).

Intentional downstream APIs are preserved as exact expectations, including every API restored for Pixi in #20074 along with its build-environment and installer-name integration hooks. The vendored uv-keyring crate is excluded to preserve its upstream public API.

As an end-user, you can install it with:

curl --proto '=https' --tlsv1.2 -LsSf \
  https://github.com/astral-sh/hawk/releases/latest/download/cargo-hawk-installer.sh | sh

Then cargo +1.96.1 hawk.

@charliermarsh
charliermarsh requested a review from zanieb July 7, 2026 00:17
@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Jul 7, 2026
@charliermarsh
charliermarsh marked this pull request as ready for review July 7, 2026 00:36
Comment thread .github/workflows/check-lint.yml Outdated
curl --proto '=https' --tlsv1.2 -LsSf \
"https://github.com/astral-sh/hawk/releases/download/${HAWK_VERSION}/cargo-hawk-installer.sh" | sh
- name: "Hawk"
# `uv-keyring` is vendored from keyring-rs, so preserve its upstream public API.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't need to do this, it's our crate now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants