diff --git a/dev/breeze/doc/images/output_start-airflow.svg b/dev/breeze/doc/images/output_start-airflow.svg index 286eefb8fe5b4..66757b5b0ca97 100644 --- a/dev/breeze/doc/images/output_start-airflow.svg +++ b/dev/breeze/doc/images/output_start-airflow.svg @@ -582,7 +582,7 @@ --skip-assets-compilationSkips compilation of assets when starting airflow even if the content of www changed    (mutually exclusive with --dev-mode).                                                   --dev-modeStarts api-server in dev mode (assets are always recompiled in this case when starting) -(mutually exclusive with --skip-assets-compilation).                                    +(mutually exclusive with --skip-assets-compilation and --use-airflow-version).          ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Build CI image (before entering shell) ─────────────────────────────────────────────────────────────────────────────╮ --force-buildForce image build no matter if it is determined as needed. diff --git a/dev/breeze/doc/images/output_start-airflow.txt b/dev/breeze/doc/images/output_start-airflow.txt index b20c774a1b108..2eabe2c3e6f67 100644 --- a/dev/breeze/doc/images/output_start-airflow.txt +++ b/dev/breeze/doc/images/output_start-airflow.txt @@ -1 +1 @@ -0e0e91f58cc936fdc0c2f2621f23fb3e +6de827b3ac600a7b488313a094d227a0 diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py b/dev/breeze/src/airflow_breeze/commands/developer_commands.py index 71ab14516b6fa..a32cf74ec2a9e 100644 --- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py @@ -515,7 +515,7 @@ def shell( @click.option( "--dev-mode", help="Starts api-server in dev mode (assets are always recompiled in this case when starting) " - "(mutually exclusive with --skip-assets-compilation).", + "(mutually exclusive with --skip-assets-compilation and --use-airflow-version).", is_flag=True, ) @click.option( @@ -628,6 +628,14 @@ def start_airflow( ) skip_assets_compilation = True + if dev_mode and use_airflow_version: + get_console().print( + "[error]You cannot set Airflow version in dev mode! Consider switching to the respective " + "version branch if you need to use --dev-mode on a different Airflow version! \nExiting!!" + ) + + sys.exit(1) + # Automatically enable file polling for hot reloading under WSL if dev_mode and is_wsl(): os.environ["CHOKIDAR_USEPOLLING"] = "true"