From 829473a456964a0bf7ad617140f124de3748dc7e Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 4 Jul 2025 14:11:23 +0200 Subject: [PATCH] [v3-0-test] Fix index generation destination (#52870) (cherry picked from commit 4e6b7f814955193c51dea3993e140d2a761d5662) Co-authored-by: Jarek Potiuk --- dev/breeze/src/airflow_breeze/commands/sbom_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/commands/sbom_commands.py b/dev/breeze/src/airflow_breeze/commands/sbom_commands.py index 0e4a174f483e4..1c0a76708025d 100644 --- a/dev/breeze/src/airflow_breeze/commands/sbom_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/sbom_commands.py @@ -451,11 +451,11 @@ def _generate_index(destination_dir: Path, provider_id: str | None, version: str for airflow_v in airflow_versions: if airflow_site_archive_path: apache_airflow_documentation_directory = ( - airflow_site_archive_path / "docs-archive" / "apache-airflow" + airflow_site_archive_path / "docs-archive" / "apache-airflow" / airflow_v ) elif airflow_root_path: apache_airflow_documentation_directory = ( - airflow_root_path / "generated" / "_build" / "docs" / "apache-airflow" + airflow_root_path / "generated" / "_build" / "docs" / "apache-airflow" / "stable" ) else: get_console().print( @@ -463,7 +463,7 @@ def _generate_index(destination_dir: Path, provider_id: str | None, version: str "Please specify one of them." ) sys.exit(1) - airflow_version_dir = apache_airflow_documentation_directory / airflow_v + airflow_version_dir = apache_airflow_documentation_directory destination_dir = airflow_version_dir / "sbom" destination_dir.mkdir(parents=True, exist_ok=True) _generate_index(destination_dir, None, airflow_v)