You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anything else we need to know?:
There are 2 problems in the above example but I want to propose a common solution to solve them both.
Why do I have 2 async versions?
Working in a Yarn workspace, I can have different versions of the same package across my dependencies. yarn.lock would list both of them.
Why am I overriding the package?
One method of mitigating vulnerable nested dependencies or working around problems with abandoned nested dependencies is to replace them with a forked and fixed release. My sample code is extracted from a much larger code that has the abandoned resize-observer-polyfill deeply nested in its dependencies, which I was forced to replace with @4lolo/resize-observer-polyfill, a forked and fixed release.
What am I proposing?
Depend solely on "resolved" URLs for those entries that are pulled from registry.yarnpkg.com; as in ^\s+resolved\s+"https://registry.yarnpkg.com/(.+?)/-/(?:.+?)-(\d+\..+?)\.tgz.
Environment:
Output of syft version: 0.42.4
OS (e.g: cat /etc/os-release or similar):
Ubuntu 20.04.2 LTS
macOS 12.2.1
The text was updated successfully, but these errors were encountered:
What happened:
Extracting packages from this
yarn.lock
file failed to identify the correct and complete packages.The output contained:
What you expected to happen:
I expected to see both versions of
async
and the correctresize-observer-polyfil
package:How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
There are 2 problems in the above example but I want to propose a common solution to solve them both.
Why do I have 2
async
versions?Working in a Yarn workspace, I can have different versions of the same package across my dependencies.
yarn.lock
would list both of them.Why am I overriding the package?
One method of mitigating vulnerable nested dependencies or working around problems with abandoned nested dependencies is to replace them with a forked and fixed release. My sample code is extracted from a much larger code that has the abandoned
resize-observer-polyfill
deeply nested in its dependencies, which I was forced to replace with@4lolo/resize-observer-polyfill
, a forked and fixed release.What am I proposing?
Depend solely on "resolved" URLs for those entries that are pulled from
registry.yarnpkg.com
; as in^\s+resolved\s+"https://registry.yarnpkg.com/(.+?)/-/(?:.+?)-(\d+\..+?)\.tgz
.Environment:
syft version
: 0.42.4cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: