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

create provider conditionally based on existence of attribute #325

Merged
merged 2 commits into from
Oct 29, 2017

Conversation

ittaiz
Copy link
Member

@ittaiz ittaiz commented Oct 29, 2017

fixes compatibility with 0.7.0 onwards
fixes #280
fixes #314
fixes bazelbuild/bazel#3792
Good news:
Small and easy fix. Identical to what @lberki did but just for the additional provider that was added.
Bad news:
Actually utilizing the feature @iirina exposed for us proves to be more tricky than expected for two reasons:

  1. We have intimate handling of ijar and output gluing throughout our code.
  2. I think the current create_provider API doesn't take into account exports

Note:
The provider is hardcoded to not create an ijar exactly due to the problems above. The current fix is just to play nice with the skylark API and sidestep the new feature.

@ittaiz
Copy link
Member Author

ittaiz commented Oct 29, 2017

the first commit shows as failed by checks since I manually cancelled the travis builds in hopes of freeing up capacity for the new commit

Copy link
Contributor

@or-shachar or-shachar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ittaiz ittaiz merged commit 388a258 into master Oct 29, 2017
Copy link
Member

@johnynek johnynek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @ittaiz

@ittaiz
Copy link
Member Author

ittaiz commented Oct 29, 2017 via email

nmurthy pushed a commit to zenreach/rules_scala that referenced this pull request Dec 18, 2017
…uild#325)

* create provider conditionally based on existence of attribute
fixes compatibility with 0.7.0 onwards
@ittaiz ittaiz deleted the fix_0_7_break branch April 15, 2018 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants