Use uv --package instead of --project in codegen prek hooks - #71511
Merged
Conversation
The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions.
Miretpl
approved these changes
Aug 12, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actions Bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Aug 12, 2026
…ks (apache#71511) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions. (cherry picked from commit c74cfcb) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
stephen-bracken
pushed a commit
to stephen-bracken/airflow
that referenced
this pull request
Aug 12, 2026
…1511) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions.
aws-airflow-bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Aug 12, 2026
…ks (apache#71511) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions. (cherry picked from commit c74cfcb) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Aug 14, 2026
…1511) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions.
potiuk
added a commit
that referenced
this pull request
Aug 17, 2026
…ks (#71511) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions. (cherry picked from commit c74cfcb) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk
added a commit
that referenced
this pull request
Aug 17, 2026
…ks (#71511) (#71512) The two datamodel-codegen hooks passed workspace package names to --project, which takes a directory. uv 0.11 tolerated it; uv 0.12 validates the path and fails with "Project directory does not exist", blocking the CI environment upgrade. --package is the flag that takes a member name, and it works on both versions. (cherry picked from commit c74cfcb) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
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
generate-tasksdk-datamodelsandgenerate-airflowctl-datamodelsprek hookspass workspace package names (
apache-airflow-task-sdk,apache-airflow-ctl) touv run --project, which takes a directory. uv 0.11 tolerated it; uv 0.12validates the path and fails with:
--packageis the flag that takes a workspace member name. Verified against bothuv 0.11.29 and uv 0.12.3: both hooks pass and regenerate byte-identical output.
This currently blocks the CI environment upgrade, which bumps uv to 0.12.3.
Note that CI here cannot demonstrate the failure, since
mainstill pins uv0.11.29, where both spellings work. This PR shows no regression; the fix is
exercised by the upgrade PR.
related: #70501
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines