Skip to content
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

Add await Get(Addresses, UnparsedAddressInputs) #10913

Merged
merged 2 commits into from Oct 6, 2020

Conversation

Eric-Arellano
Copy link
Contributor

@Eric-Arellano Eric-Arellano commented Oct 6, 2020

Problem

There are now ~dozen instances where we allow the user to specify an address somewhere other than the dependencies field, such as options like --protoc-runtime-targets.

We had lots of duplication for parsing these raw string values. Likewise, every single implementation failed to handle subprojects correctly.

Solution

Factor up a new UnparsedAddressInputs type. This stores strings, rather than AddressInput, so that we can make sure we consider subprojects correctly without callers needing to know this exists.

This is a much simpler implementation than the dependencies field, e.g. not allowing for ! and !! ignores.

[ci skip-rust]
[ci skip-build-wheels]

[ci skip-rust]
[ci skip-build-wheels]
@coveralls
Copy link

coveralls commented Oct 6, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling beae719 on Eric-Arellano:parse-address-inputs into 3b6fbd7 on pantsbuild:master.

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 45c44f6 into pantsbuild:master Oct 6, 2020
@Eric-Arellano Eric-Arellano deleted the parse-address-inputs branch October 6, 2020 17:33
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.

None yet

3 participants