Skip to content

Commit 4e6b7f8

Browse files
authored
Fix index generation destination (#52870)
1 parent c65dc8e commit 4e6b7f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/breeze/src/airflow_breeze/commands/sbom_commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,19 +451,19 @@ def _generate_index(destination_dir: Path, provider_id: str | None, version: str
451451
for airflow_v in airflow_versions:
452452
if airflow_site_archive_path:
453453
apache_airflow_documentation_directory = (
454-
airflow_site_archive_path / "docs-archive" / "apache-airflow"
454+
airflow_site_archive_path / "docs-archive" / "apache-airflow" / airflow_v
455455
)
456456
elif airflow_root_path:
457457
apache_airflow_documentation_directory = (
458-
airflow_root_path / "generated" / "_build" / "docs" / "apache-airflow"
458+
airflow_root_path / "generated" / "_build" / "docs" / "apache-airflow" / "stable"
459459
)
460460
else:
461461
get_console().print(
462462
"[error]You must specify either --airflow-site-archive-path or --airflow-root-path. "
463463
"Please specify one of them."
464464
)
465465
sys.exit(1)
466-
airflow_version_dir = apache_airflow_documentation_directory / airflow_v
466+
airflow_version_dir = apache_airflow_documentation_directory
467467
destination_dir = airflow_version_dir / "sbom"
468468
destination_dir.mkdir(parents=True, exist_ok=True)
469469
_generate_index(destination_dir, None, airflow_v)

0 commit comments

Comments
 (0)