-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Require setting description_of_origin
with AddressInput
and UnparsedAddressInputs
#15743
Require setting description_of_origin
with AddressInput
and UnparsedAddressInputs
#15743
Conversation
…rsedAddressInputs` [ci skip-rust] [ci skip-build-wheels]
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.
I split this up into a dedicated PR so that
a) we have a dedicated changelog entry for plugin change
b) we can bikeshed the new error messages more easily
@@ -33,6 +33,7 @@ async def inject_docker_dependencies( | |||
UnparsedAddressInputs( | |||
(v for v in dockerfile_info.from_image_build_args.to_dict().values() if v), | |||
owning_address=dockerfile_info.address, | |||
description_of_origin="TODO(#14468)", |
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.
I can try to figure this out, although @kaos if you have a chance, it would help.
@@ -283,6 +283,7 @@ async def create_docker_build_context( | |||
UnparsedAddressInputs( | |||
dockerfile_build_args.values(), | |||
owning_address=dockerfile_info.address, | |||
description_of_origin="TODO(#14468)", |
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.
I can try to figure this out, although @kaos if you have a chance, it would help.
UnparsedAddressInputs( | ||
target_refs, | ||
owning_address=address, | ||
description_of_origin=f"TODO(#14468)", |
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.
I can figure this one out after lunch. The tricky part is it could be from provides
field or entry_points
field.
Targets, UnparsedAddressInputs([request.pants_address], owning_address=None) | ||
Targets, | ||
UnparsedAddressInputs( | ||
[request.pants_address], owning_address=None, description_of_origin="TODO(#14468)" |
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.
@@ -46,7 +46,7 @@ def address_input(self) -> AddressInput: | |||
f"Unknown URI scheme for BSP BuildTargetIdentifier. Expected scheme `pants`, but URI was: {self.uri}" | |||
) | |||
raw_addr = self.uri[len("pants:") :] | |||
return AddressInput.parse(raw_addr) | |||
return AddressInput.parse(raw_addr, description_of_origin="TODO(#14468)") |
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.
This will allow us to enrich the error messages for #14468, which will be done in a followup.
Some of the callers are not yet implemented, but that's fine because this doesn't update error messages yet except for two cases that should not happen in the wild.
[ci skip-rust]
[ci skip-build-wheels]