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 erroneously pruned crates #481

Merged
merged 5 commits into from
Nov 8, 2022
Merged

Fix erroneously pruned crates #481

merged 5 commits into from
Nov 8, 2022

Conversation

Jake-Shadle
Copy link
Member

Bumps krates to 0.12.5 to fix an issue where the index was treated as authoritative on feature sets....overwriting valid features that were turned on, potentially causing crates to be erroneously pruned from the crate graph.

Also fixes an issue with multiple license files for a crate, where any failure would cause the license gather to fail, even if at least one license file could be successfully scored with a license. So now those failures are just appended to the diagnostic that is shown. The license file names where the license expression was gathered from are also now shown in the diagnostic.

If _any_ license file failed the gather would fail, kind of defeating
the purpose of being able to have multiple license files. The failures
are now also added to the Ok if at least
some expression was able to be procured, and those warnings/errors are
now displayed in the diagnostic for the krate license. We also now
include all of the files that were involved in synthesizing the
expression for clarity
@Jake-Shadle Jake-Shadle merged commit eeb6711 into main Nov 8, 2022
@Jake-Shadle Jake-Shadle deleted the fix/krates-again branch November 8, 2022 18:07
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.

1 participant