Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse partial Airflow versions #1732

Closed
3 tasks
BasPH opened this issue Oct 11, 2024 · 1 comment
Closed
3 tasks

Parse partial Airflow versions #1732

BasPH opened this issue Oct 11, 2024 · 1 comment

Comments

@BasPH
Copy link
Contributor

BasPH commented Oct 11, 2024

Describe the bug

Providing only a major/minor Airflow version fails (with an obfuscated error), and defaults to a rather old Airflow version:

$ astro dev init --airflow-version 2.9
WARNING! There was a network issue getting the latest Astro Runtime image. Your Dockerfile may not contain the latest version
Initializing Astro project
Pulling Airflow development files from Astro Runtime 5.0.1

Turns out you have to specify the full major/minor/patch version:

$ astro dev init --airflow-version 2.9.3
Initializing Astro project
Pulling Airflow development files from Astro Runtime 11.11.0

I would expect different behaviour, e.g. selecting the latest version within Airflow 2.9.*, or a meaningful message that the version cannot be found, or a list of Airflow versions to choose from.

What CLI Version did you experience this bug?
1.29.0

This CLI bug is related to which Astronomer Platform?

  • Astro
  • Software
  • None/Unknown

What Operating System is the above CLI installed on?

🪜 Steps To Reproduce

📸 Screenshots

@robshea-astro
Copy link

To be addressed in #1733

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

No branches or pull requests

2 participants