Skip to content

Fix erroneously pruned crates#481

Merged
Jake-Shadle merged 5 commits intomainfrom
fix/krates-again
Nov 8, 2022
Merged

Fix erroneously pruned crates#481
Jake-Shadle merged 5 commits intomainfrom
fix/krates-again

Conversation

@Jake-Shadle
Copy link
Copy Markdown
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