Snyk: Snyk 1.138.0 can't find package when testing yarn.lock file

Created on 19 Mar 2019  ·  5Comments  ·  Source: snyk/snyk

I'm running into an error running snyk against my yarn.lock file after upgrading to 1.138.0. It works just fine with 1.137.0.

  • node -v: v11.5.0
  • npm -v: 6.4.1
  • snyk -v: 1.138.0
  • Command run:
    snyk test --file=yarn.lock

Expected behaviour

Running snyk in the repo below should produce the output:
✓ Tested 1 dependencies for known vulnerabilities, no vulnerable paths found.

Actual behaviour

Instead, it says:
The package could not be found or does not exist

Steps to reproduce

Install snyk 1.138.0 or above, then:

git clone -b add-yarn-lock [email protected]:balderdash/react-native-get-random-values.git test
cd test
snyk test --file=yarn.lock

Output from running snyk test --file=yarn.lock --debug:
https://gist.github.com/balderdash/32f359a0a39f1211e496d90ea4275c07

All 5 comments

👋 thanks for flagging this, the issue is acknowledged and we're working on a fix. I'll update within the hour.

Root cause identified, fix is on it's way to production, next update in 20 min

The fix is now in production, apologies for this interruption (lasted <7h) and thanks for letting us know!

No need to update the CLI, the fix is on our backend.

It's working for me, thanks for the quick fix!

Was this page helpful?
0 / 5 - 0 ratings