Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 088f927

Browse files
committed
Remove own version comparison
1 parent 8aebcab commit 088f927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbom/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func cachedSbom(sbomFilePath string) *types.Sbom {
187187
if err == nil {
188188
err := json.Unmarshal(b, &sbom)
189189
if err == nil {
190-
if sbom.Descriptor.SbomVersion == internal.FromBuild().SbomVersion && sbom.Descriptor.Version == internal.FromBuild().Version {
190+
if sbom.Descriptor.SbomVersion == internal.FromBuild().SbomVersion {
191191
skill.Log.Infof(`Indexed %d packages`, len(sbom.Artifacts))
192192
return &sbom
193193
}

0 commit comments

Comments
 (0)