Skip to content

Conversation

@andrewrobinsonhodges-snyk
Copy link
Contributor

Description

Changing the bundle Create method to create empty bundles broke AIBOM, as it needs access to the file contents without running a scan.

This PR introduces a new CreateEmpty method on the Bundle interface. Code scans use the new method (and so don't need to load files into memory), and AIBOM and other CLI commands can continue to use the old behaviour.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing

🚨After having merged, please update the snyk-ls and CLI go.mod to pull in latest client.

Signed-off-by: Andrew Robinson Hodges <andrew.robinsonhodges@snyk.io>
# Conflicts:
#	bundle/bundle_manager.go
#	internal/deepcode/helpers.go
#	internal/util/hash.go
@snyk-io
Copy link

snyk-io bot commented Sep 9, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk marked this pull request as ready for review September 10, 2025 09:22
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk merged commit d916785 into main Sep 10, 2025
12 checks passed
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk deleted the feat/improve-bundle-performance branch September 10, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants