Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a regression that causes an exception to be raised when building OT Python deps:
The issue seems related to pkginfo not being able to parse newer versions of package metadata, although the reason why this started failing all of a sudden has not been root caused.
To reproduce
In a fresh checkout of OpenTitan's
earlgrey_es_sival
branch (reproducing might require clearing your Bazel cache, but note that this will break future builds if this fix isn't applied):Now, patch OpenTitan to apply this PR's changes:
The command now completes successfully when re-run:
Actually completing the fix will require updating OpenTitan to declare the newer version of rules_python early in
WORKSPACE
(as shown here), or threading it through other transitive dependencies (like crt).