-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SBOM Tool returns exit code 0 even if the arguments are invalid #593
Comments
@gustavoaca1997, I suspect you may be using an old version of the tool. I tried your repro case on the current version and the return code is 1, not 0. #520 reported a problem with return codes, which was fixed in #544, and the fix should be in current version (2.2.6) on Nuget As a side note, this tool requires a |
Thank you for the reply @DaveTryon . I am indeed using an older version (2.2.3). Regarding using |
@gustavoaca1997, I hadn't realized that PowerArgs supported the I'll go ahead and close out this issue, since the originally reported problem has already been addressed. Thanks! |
How to repro:
Use a BuildDropPath that includes a white space, without enclosing it in quotes, something like this:
will make the tool output this error:
but the exit code will be
0
:The text was updated successfully, but these errors were encountered: