UNCLASSIFIED - NO CUI

Skip to content

Added logic to handle file:// sboms in babu caching service

General MR

Summary

Added support for file:// URLs in the babu cache service raw copy functionality. The service now handles local file references in SBOM entries alongside existing support for S3 and HTTP/HTTPS URLs.

Changes

  • Enhanced raw_copy() function in artifact_dirs/scripts/babu-cache-builder.sh:158-162 to detect and handle file:// scheme URLs
  • Added logic to strip the file:// prefix and copy local files to the temporary staging directory before uploading to Nexus repository
    • Creates a symbolic link in /tmp/ pointing to the local file (avoids unnecessary file copying)
    • Cleans up the symbolic link after upload, leaving the original file intact
  • Maintains existing functionality for S3 and HTTP/HTTPS URL schemes

Linked Issue

issue

Upgrade Notices

N/A

Edited by John Patterson

Merge request reports

Loading