sbom-tool icon indicating copy to clipboard operation
sbom-tool copied to clipboard

Can't generate an SBOM for directories containing a space

Open henning-krause opened this issue 3 years ago • 0 comments

I execute this command on Windows (doesn't matter if I use cmd or PowerShell):

C:\Temp\sbom-tool.exe generate -b "C:\src\core\Build\Service with spaces" -bc "C:\src\core\Solutions\service with spaces\src\" -pn "Foo bar services" -pv "1.0.0.0" -nsb "https://example.com"

The tool runs and creates a manifest, however no depedencies are found.

Program output:

[INFO] Log file: C:\Users\username\AppData\Local\Temp\GovCompDisc_Log_20220722135038.log
[INFO] Run correlation id: 77b85f03-caa7-47b4-bc71-94e9e4b003c1

[INFO] Attempting to load default detectors
[INFO] 19 detectors were found in Microsoft.ComponentDetection.Detectors

[WARN] Provided search path C:\Users\username\AppData\Local\Temp\.net\sbom-tool\lpvnvva1.mst\Plugins does not exist.


[INFO] Finding components...
[INFO] No instructions received to scan docker images.
[ERROR] Root directory doesn't exist: C:\src\core\Solutions\service

If I run the tool on a directory without spaces, everything works fine.

henning-krause avatar Jul 22 '22 12:07 henning-krause