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

Fix rpc style in compiler_args check. #4730

Merged
merged 2 commits into from
Jul 10, 2017

Conversation

pankajroark
Copy link
Contributor

Problem

While trying to test the pants build in source repo I realizes that the compiler_args_has_rpc_style is broken because the compiler args will have double dash in front e.g. --finagle whereas values in _RPC_STYLES don't. This results in scrooge generation failing if both compiler_args and rpc_style specify rpc style.

Solution

Fixed the check.

Result

Setting compiler args to --finagle in java_thrift_libraries pants targets now succeeds even if rpc_style is defined.

@stuhood
Copy link
Member

stuhood commented Jul 7, 2017

Please add a test to cover this.

@pankajroark
Copy link
Contributor Author

I also ran source sandbox which succeeds: source_sandbox_phab_production/4562/

@stuhood stuhood self-requested a review July 10, 2017 18:30
@stuhood stuhood merged commit b1746b9 into pantsbuild:master Jul 10, 2017
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.

2 participants