Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dev/breeze/src/airflow_breeze/commands/sbom_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,19 +451,19 @@ 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(
"[error]You must specify either --airflow-site-archive-path or --airflow-root-path. "
"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)
Expand Down