Skip to content

fix: clarify custom build hook path errors - #2346

Open
oiahoon wants to merge 1 commit into
pypa:masterfrom
oiahoon:fix/custom-build-hook-path-message
Open

fix: clarify custom build hook path errors#2346
oiahoon wants to merge 1 commit into
pypa:masterfrom
oiahoon:fix/custom-build-hook-path-message

Conversation

@oiahoon

@oiahoon oiahoon commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • clarify that missing relative custom build-hook paths are resolved from the project root
  • preserve the existing diagnostic for absolute paths
  • cover both path forms with focused regression tests

Closes #1226

Verification

  • pytest tests/backend/builders/hooks/test_custom.py (7 passed)
  • pytest tests/backend (942 passed, 49 skipped)
  • ruff check and ruff format --check on both changed files
  • isolated Hatchling sdist and wheel build
  • git diff --check

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.

hatchling better error message for missing build hook

1 participant