gradle-plugin icon indicating copy to clipboard operation
gradle-plugin copied to clipboard

Globally installed snyk binary is found but not used

Open vadi2 opened this issue 7 months ago • 0 comments

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]

vadi2 avatar Jul 09 '24 07:07 vadi2