You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the minor changes between CycloneDX JSON 1.3 and 1.4 is that the requirement of the version field for a component has been removed.
Additionally, there was a recent set of changes that resulted in the decision to convert a Go main modules' version from the value reported by Go, (devel), to an empty string.
Unfortunately, we are now in a state where generating a CycloneDX JSON 1.3 document from the latest codebase means we need to reverse engineer whether the package we are looking at is the main module by looking for the presence of build settings. This feels like a kludge.
Would it be possible to consider a value other than empty string in this case? Maybe latest?
The text was updated successfully, but these errors were encountered:
At the moment, I can't think of a better solution here than to put back the (devel) value in these cases (meaning, read this value "as is" from the buildinfo section).
One of the minor changes between CycloneDX JSON 1.3 and 1.4 is that the requirement of the
version
field for acomponent
has been removed.Additionally, there was a recent set of changes that resulted in the decision to convert a Go main modules' version from the value reported by Go,
(devel)
, to an empty string.syft/syft/pkg/cataloger/golang/parse_go_bin.go
Line 32 in 25bf679
Unfortunately, we are now in a state where generating a CycloneDX JSON 1.3 document from the latest codebase means we need to reverse engineer whether the package we are looking at is the main module by looking for the presence of build settings. This feels like a kludge.
Would it be possible to consider a value other than empty string in this case? Maybe
latest
?The text was updated successfully, but these errors were encountered: