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: improve license file reading logic #5740

Merged
merged 6 commits into from Dec 9, 2022

Conversation

weyert
Copy link
Contributor

@weyert weyert commented Dec 2, 2022

If the file index is of the appropriate type so we can leverage the contents of PackageFileInfo-type we try to lookup the file mode to and pass it to the readLicenseFileFromCafs-function so it can be correctly passed to the underlying getFilePathByModeInCafs-function responsible for fetching the file from the PNPM store

If the file index is of the appropriate type so we can leverage the contents of `PackageFileInfo`-type we try
to lookup the file mode to and pass it to the `readLicenseFileFromCafs`-function so it can be correctly
passed to the underlying `getFilePathByModeInCafs`-function responsible for fetching the file from
the PNPM store
@weyert
Copy link
Contributor Author

weyert commented Dec 2, 2022

Potential fix for #5737 . Got to find a way to reproduce the issue

@weyert weyert marked this pull request as ready for review December 5, 2022 18:43
@weyert weyert requested a review from zkochan as a code owner December 5, 2022 18:43
@zkochan
Copy link
Member

zkochan commented Dec 5, 2022

It should be covered with a test.

Weyert de Boer added 2 commits December 8, 2022 11:58
Added a test to verify that the LICENSE files of the `svgicons2svgfont@5.0.2`-package
and similar packages can be read without errors
@weyert
Copy link
Contributor Author

weyert commented Dec 8, 2022

Not sure what's going on with the Windows tests. Wouldn't expect the fail in this manner (type definitions missing)

@zkochan
Copy link
Member

zkochan commented Dec 9, 2022

The CI issue is not related to your changes.

@zkochan zkochan merged commit 5464e1d into pnpm:main Dec 9, 2022
@zkochan zkochan modified the milestones: v7.19, v7.18 Dec 28, 2022
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.

None yet

2 participants