Repository navigation
🐛 fix(build): lock the self hook's build needs - #3
Merged
Merged
Conversation
The release build installs [build-system] requires only with hashes from the lock's build group. python-sbom builds itself with its own hook, which needs installer, packageurl-python and zipremove, and the group lacked them, so the 0.1.0 release build failed before anything was published.
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 0.1.0 release failed at the build step, before anything reached PyPI or GitHub Releases. The release build installs
[build-system].requireswith--require-build-hashes, taking the hashes from thebuildgroup ofpylock.tomlthrough the shared constraint export. python-sbom builds its own wheel with its own hook, which also needsinstaller,packageurl-pythonandzipremove, and the group listed only the hatch plugins, so uv refusedinstallerfor want of a trusted hash.The
buildgroup now lists every build requirement, and the relock adds those three packages to the group without changing any version. Building with the constraints the release workflow exports passes on this branch and fails onmain.