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 ignored private packages being assigned incorrect license #184

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Fix ignored private packages being assigned incorrect license #184

merged 2 commits into from
Mar 2, 2022

Conversation

danielnelson
Copy link
Contributor

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

The resolve function returns a Vec<Resolved> that must align with the
licenses gathered earlier since they will be zipped together to create a
crate to license mapping. If any items are filtered the alignment is thrown
off and crates will be assigned the wrong license.

P.S. The links above in the checklist seem to be incorrect and can't be followed.

Related Issues

closes #183

The `resolve` function returns a `Vec<Resolved>` that must align with the
licenses gathered earlier since they will be zipped together to create a
crate to license mapping.  If any items are filtered the alignment is thrown
off and crates will be assigned the wrong license.
@Jake-Shadle
Copy link
Member

Sorry I completely forgot about this PR, this does fix a bug someone reported apollographql/router#536, but it regresses the change that introduced this bug, so I'm going to fix it up and publish a release. Sorry for the long delay in response.

Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, sorry again for the long delay!

@mergify mergify bot merged commit 6c25190 into EmbarkStudios:main Mar 2, 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.

Crates with publish=false may be added even when private crates are ignored
2 participants