fix: add --no-dags-base-dir flag for Airflow 3 DAG bundle compatibility by tayloramurphy · Pull Request #2001 · astronomer/astro-cli

@tayloramurphy

Adds opt-in flag to exclude the dags/ directory prefix from DAG bundles.
This is needed for Airflow 3.x where sys.path includes the bundle root,
causing imports from shared modules in dags/ to fail.

Usage: astro deploy --dags --no-dags-base-dir

Fixes astronomer#1985

@tayloramurphy tayloramurphy changed the title fix: adjust DAG bundle structure for Airflow 3 sys.path change fix: add --no-dags-base-dir flag for Airflow 3 DAG bundle compatibility

Feb 6, 2026

jeremybeard

@tayloramurphy

@tayloramurphy