Skip to content

Enhance Npm Resolver: support recording license contents#71

Merged
kezhenxu94 merged 2 commits intoapache:mainfrom
zooltd:enhance/npm
Sep 15, 2021
Merged

Enhance Npm Resolver: support recording license contents#71
kezhenxu94 merged 2 commits intoapache:mainfrom
zooltd:enhance/npm

Conversation

@zooltd
Copy link
Contributor

@zooltd zooltd commented Sep 15, 2021

This patch eanhances Npm resolver to record each pkg's license contents. In previous versions, Npm resolver will not record the license content when it identifies a pkg's license through the package.json file. Now, it will still resolve a pkg's license info through its package.json file first. Also, whether or not the previous step succeeded, it will try to locate a pkg's LICENSE file and record its content.

@wu-sheng wu-sheng requested a review from kezhenxu94 September 15, 2021 03:24
@wu-sheng wu-sheng added this to the 0.2.0 milestone Sep 15, 2021
kezhenxu94
kezhenxu94 previously approved these changes Sep 15, 2021
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

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

LGTM, one nit

LicenseFilePath string
LicenseContent string
LicenseSpdxID string
ManifestFilePath string
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be unused now, do you think it will be used any soon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. The ManifestFilePath field seems redundent. I'm gonna delete this field.

@kezhenxu94 kezhenxu94 merged commit 2cfd5a1 into apache:main Sep 15, 2021
@zooltd zooltd deleted the enhance/npm branch September 15, 2021 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants