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
While running dev-tests with different builds of the tool, I've got invalid JSONs, looking like this (at where the parser reading them back complained):
While running dev-tests with different builds of the tool, I've got invalid JSONs, looking like this (at where the parser reading them back complained):
Digging a bit more into this, the culprit seems to be here:
cyclonedx-cli/src/cyclonedx/CliUtils.cs
Line 157 in 5de8d19
According to https://stackoverflow.com/questions/3653132/file-openwrite-appends-instead-of-wiping-contents the
File.Create()
should be used instead ofFile.OpenWrite()
which here (mis-)behaves correctly according to its spec.The text was updated successfully, but these errors were encountered: