snyk / gradle-plugin

Snyk Gradle Plugin - Scanning and monitoring your dependencies for security vulnerabilities from Gradle
Other
20 stars 19 forks source link

Globally installed snyk binary is found but not used #39

Open vadi2 opened 4 months ago

vadi2 commented 4 months ago

My snyk binary is installed globally:

% snyk --version
1.1292.0

However, when performing any actions, the plugin tries to use a local binary that doesn't exist:

> Task :app:snyk-check-binary
Caching disabled for task ':app:snyk-check-binary' because:
  Build cache is disabled
Task ':app:snyk-check-binary' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
look for standalone binary
no snyk standalone found
Using Snyk CLI version: 1.1292.0 (standalone)
Resolve mutations for :app:snyk-test (Thread[Execution worker,5,main]) started.
:app:snyk-test (Thread[Execution worker,5,main]) started.

> Task :app:snyk-test
Caching disabled for task ':app:snyk-test' because:
  Build cache is disabled
Task ':app:snyk-test' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Cannot run program "./snyk": error=2, No such file or directory
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]