Closed WDN2010 closed 1 year ago
@WDN2010, any oss repo to reproduce this issue?
Any trending go project should work. For example, https://github.com/hashicorp/terraform returns 185 go components for 5.4.2 vs 0 components for 8.1.4
Thanks @WDN2010 for the help. Please use version 8.1.5, which includes the fix.
Hi! I have the same things. I use 9.8.3 version. I tried use previous versions 8.1.5 and 8.6.0 but same result
SCAN_DEBUG_MODE=debug cdxgen -r -t universal -o bomm.json
Scanning .
Performing babel-based package usage analysis with source code at .
Executing go list -deps in /products
go unexpectedly didn't return any output
Attempting to detect required packages using "go mod why" command for 0 packages
Required packages: 0
Manually parsing go.mod files. The resultant BoM would be incomplete.
Parsing /products/go.mod
Found 0 csharp packages at .
BoM includes 0 components and 0 dependencies after dedupe
BOM includes 0 unfiltered components 0 dependencies so far
BoM includes 0 components and 0 dependencies after dedupe
===== WARNINGS =====
[ 'metadata.component is missing.' ]
@loschakov, is go installed? Could you share the output from go list -deps
?
I installed go and it works. Thank you
Hi! Cdxgen version 5.4.3+ returns no result if go environment is not available. Previous versions are able to fallback to manual parsing of go.mod file
Current result (version 8.1.4):
Expected result (version 5.4.2):