Skip to content
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

Pnpm CLI option not recognized #3789

Closed
RemiGC opened this issue Nov 10, 2021 · 5 comments
Closed

Pnpm CLI option not recognized #3789

RemiGC opened this issue Nov 10, 2021 · 5 comments
Labels
Milestone

Comments

@RemiGC
Copy link

RemiGC commented Nov 10, 2021

Describe the bug
The new cli option for pnpm and disablePnpmAudit are not recognized on the cli.

Version of dependency-check used
The problem occurs using version 6.5.0 of the cli.

Log file

Unrecognized option: --pnpm

To Reproduce
Steps to reproduce the behavior:

  1. Download latest release (windows or Linux)
  2. Install
  3. .\dependency-check.bat --version
  4. output: Dependency-Check Core version 6.5.0
  5. .\dependency-check.bat --pnpm c:\path -s C:\secondpath
  6. output: Unrecognized option: --pnpm

Expected behavior
I expect both --pnpm and --disablePnpmAudit to be recognized by the CLI.

Additional context

>.\dependency-check.bat --disablePnpmAudit
Unrecognized option: --disablePnpmAudit
@RemiGC RemiGC added the bug label Nov 10, 2021
@adcorduneanu
Copy link

I would say there is more related to this issue because my entire Azure DevOps pipeline is failing with the following exception:

[ERROR] Exception occurred initializing Pnpm Audit Analyzer.
...
[ERROR] Unable to read pnpm audit output.

##[debug]2 final results
[ 'Source\dep\dependency-check-report.html',
'Source\dep\dependency-check-report.json' ]
Dependency Check failed with message "Dependency Check exited with an error code (exit code: 4294967282)."
##[debug]task result: Failed
##[error]Dependency Check exited with an error code (exit code: 4294967282).

So means something is there, but not everything...

@bovy89
Copy link

bovy89 commented Jan 17, 2022

the option --disablePnpmAudit is still not recognized on the cli.

$ ./dependency-check.sh --version
Dependency-Check Core version 6.5.3

$ ./dependency-check.sh --disablePnpmAudit
Unrecognized option: --disablePnpmAudit

@RemiGC
Copy link
Author

RemiGC commented Jan 17, 2022

There's a workaround. You can set it via env variables.

JAVA_TOOL_OPTIONS=-Danalyzer.pnpm.path=/your/path

@ssaturno
Copy link

Hello, I'm trying to execute the command '--disablePnpmAudit' as an argument in my Dependency Check task in a pipeline from Azure DevOps and it doesn't work.

I get this:
[ERROR] Exception occurred initializing Pnpm Audit Analyzer.
[ERROR] Unable to read pnpm audit output.

I read the bug is already fixed but I'm having it yet.

Any suggestion?

@kristofertreutwein
Copy link

--disablePnpmAudit is still not a recognized option to the cli in 6.5.3

proposal would be
issue3789-disablepnpm.patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants