Skip to content
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

fix: dont omit license from stored manifests #7475

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

lukekarrys
Copy link
Contributor

This has the effect of adding licenses back into the lockfiles.
Based on code in shrinkwrap.js and inventory.js, it appears that
lockfiles are supposed to store the license. It's likely that in
practice this behavior has not been consistent due to fetching
of minifed manifests and packuments.

I also attempted to remove the license code from shrinkwrap but
that caused many more tests to break. Plus I believe this is the
intended behavior, to have licenses in lockfiles based on bug
reports like #7384

This has the effect of adding licenses back into the lockfiles.
Based on code in shrinkwrap.js and inventory.js, it appears that
lockfiles are supposed to store the license. It's likely that in
practice this behavior has not been consistent due to fetching
of minifed manifests and packuments.

I also attempted to remove the license code from shrinkwrap but
that caused many more tests to break. Plus I believe this is the
intended behavior, to have licenses in lockfiles based on bug
reports like #7384
@lukekarrys lukekarrys requested a review from a team as a code owner May 6, 2024 04:30
Copy link
Contributor

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great; having the license more available will make license-checking tools faster and more reliable.

@lukekarrys lukekarrys merged commit effe910 into latest May 6, 2024
23 checks passed
@lukekarrys lukekarrys deleted the lk/lockfile-license branch May 6, 2024 16:38
@github-actions github-actions bot mentioned this pull request May 6, 2024
techknowlogick pushed a commit to go-gitea/gitea that referenced this pull request Jul 11, 2024
Result of `make update-js`. Tested all dependencies. Lockfile diff is
because of npm/cli#7475.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants