-
Notifications
You must be signed in to change notification settings - Fork 35
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
Require Resolved field, and Check package versions #120
Comments
Hi Bozdov, thanks for opening an issue on these. The first issue you reported sounds like something we should fix. Could you also share an example/reference lockfile which doesn't have that Let's break this up to small PRs so it's easy to reason about and merge. Would you like to start with issue (1) as you pointed out? |
@lirantal Yes I can split this into separate issues and start on the |
Sounds good! |
Quick follow-up: I found out that resolved fields appear to go missing if the packages are installed, then the lockfile deleted, and the lockfile is regenerated with Using npm@8.5.0 and node@16.14.2 on a brand new project. |
Could it be that these are changes related to the lockfile version? I believe it was simply schema changes between npm6, npm7, and npm8. |
Just to follow up, I cannot seem to reproduce the 'resolved' fields missing anymore, even on the npm version I mentioned before. I've seen this happen in 3 different (work) projects, and even to myself (personal project), but just tried a few times now and can't figure out what situation causes it. |
Just a follow up; found more lockfiles without resolved fields, and found this related Issue: npm/cli#4460 I still think it may be an issue as it makes it somewhat ambiguous as to which registry it will fetch from (i.e. I'm using |
Just noticing how much of an epic thread this really is: npm/cli#4460 (comment)
|
I've run into timeout issues with npm because my packages don't have
'resolved'
fields in the package-lock file. This seems simple enough to add:lockfile-lint/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js
Lines 21 to 23 in 9b0b167
I am also curious about ensuring versions; squelched here:
lockfile-lint/packages/lockfile-lint-api/src/validators/ValidatePackageNames.js
Line 46 in 9b0b167
Wondering if you are accepting PR's for this, and if you have any insight/preferences for how this is accomplished.
The text was updated successfully, but these errors were encountered: