-
Notifications
You must be signed in to change notification settings - Fork 854
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't read metadata from stale
.egg-info
files (#9760)
## Summary We were reading an `.egg-info` file from the root directory that didn't apply to the root member -- it was for another workspace member. I think this is driven from some idiosyncracies in the `setuptools` setup for that workspace member, but it's still wrong to fail. This PR adds a few measures to fix this: 1. We validate the `egg-info` filename against the package metadata. 2. We skip, rather than fail, if we see incorrect metadata in an `egg-info` file or similar. This is an optimization anyway; worst case, we try to build the package, then fail there. Closes #9743.
- Loading branch information
1 parent
25045cb
commit 8a2e3a8
Showing
3 changed files
with
171 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters