Skip to content

Commit

Permalink
Fix case where --use-constraints-version VERSION has been broken (a…
Browse files Browse the repository at this point in the history
…pache#36123)

We are changing the whole mechanism in apache#36094 but since it might
take a bit to review, this is a quick fix to fix --use-airflow-version
pointing to specific airflow version.
  • Loading branch information
potiuk authored Dec 8, 2023
1 parent aba58ad commit 73abe32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _determine_constraint_branch_used(airflow_constraints_reference: str, use_ai
and re.match(r"[0-9]+\.[0-9]+\.[0-9]+[0-9a-z\.]*|main|v[0-9]_.*", use_airflow_version)
):
get_console().print(f"[info]Using constraints {use_airflow_version} - matching airflow version used.")
return use_airflow_version
return f"constraints-{use_airflow_version}"
return airflow_constraints_reference


Expand Down

0 comments on commit 73abe32

Please sign in to comment.