-
Notifications
You must be signed in to change notification settings - Fork 762
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
Surface invalid metadata as hints in error reports #2850
Conversation
d0b684f
to
3b609d0
Compare
3b609d0
to
09a2344
Compare
MetadataResponse::InvalidStructure(err) => { | ||
self.unavailable_packages.insert( | ||
package_name.clone(), | ||
UnavailablePackage::InvalidStructure(err.to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's confusing but for URLs, we don't have a version... so both UnavailablePackage
and IncompletePackage
have an InvalidStructure
and InvalidMetadata
variant.
09a2344
to
62e083a
Compare
write!( | ||
f, | ||
"{}{} Metadata for {} could not be parsed:\n{}", | ||
"hint".bold().cyan(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can we move the hint:
outside the match?
scripts/packages/dependent_editables/second_editable/build/lib/second_editable/__init__.py
Outdated
Show resolved
Hide resolved
62e083a
to
a6fa820
Compare
Summary
Closes #2847.