Skip to content

Do not build with hatchling 1.32.1 - #289

Merged
unflxw merged 1 commit into
mainfrom
do-not-build-with-hatchling-1-32-1
Sep 16, 2026
Merged

unflxw merged 1 commit into
mainfrom
do-not-build-with-hatchling-1-32-1

Conversation

@unflxw

@unflxw unflxw commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

The package names hatchling as its build backend without a version, so a build takes whichever release is newest. In 1.32.1 hatchling.builders.binary imports hatch.plugin.manager at module level, and it needs it at runtime rather than for typing alone, because the names it reads from it are the type arguments of two class definitions. A build environment holds the backend and not the tool, so registering the builder plugins raises ModuleNotFoundError: No module named 'hatch' and no wheel is built. Exclude that one release, so a build takes 1.32.0 or whichever later release drops the import again.

hatchling 1.32.1 was published today, which is why the Build package job started failing on every branch this afternoon. The same job passed this morning on the same code.

[skip changeset]

The package names `hatchling` as its build backend without a version, so
a build takes whichever release is newest. In 1.32.1
`hatchling.builders.binary` imports `hatch.plugin.manager` at module
level, and it needs it at runtime rather than for typing alone, because
the names it reads from it are the type arguments of two class
definitions. A build environment holds the backend and not the tool, so
registering the builder plugins raises `ModuleNotFoundError: No module
named 'hatch'` and no wheel is built. Exclude that one release, so a
build takes 1.32.0 or whichever later release drops the import again.
@backlog-helper

Copy link
Copy Markdown

Hi @unflxw,

We've found some issues with your Pull Request.

  • This Pull Request is missing labels. Please add labels to help identify types of Pull Requests. - (More info)
  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@unflxw
unflxw merged commit 94c3a9a into main Sep 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant