-
Notifications
You must be signed in to change notification settings - Fork 375
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
Error determining version of yarn dependency with "+git" in version #574
Comments
@G-Rath Can you take a look? Thanks! |
That is the actual version of the package: https://github.com/angular/domino/blob/main/package.json#L3 It's a valid semantic version but Yarn v1 strips out build metadata - Yarn Berry and NPM v7+ however don't |
Out of curiosity, does |
It shouldn't because build metadata is meant to be ignored when comparing versions |
Saw this today running
osv-scanner
indirectly through Scorecard.The offending line is here, which was added recently here
I see the
+
symbol is used for build info in npm semver, but I have no idea if this is a validyarn.lock
file (similar to #142 ) with any version of yarn.Not a
yarn
user, tried a few things and got different (valid) lockfiles. Not sure what Angular did to get theirs. Runningyarn add [email protected]
yields:And
yarn add https://github.com/angular/domino.git#f2435fe1f9f7c91ade0bd472c4723e5eacd7d19a
proudces:The text was updated successfully, but these errors were encountered: