-
Notifications
You must be signed in to change notification settings - Fork 1
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 action_env for ipa post processor #1
Fix action_env for ipa post processor #1
Conversation
apple/internal/processor.bzl
Outdated
@@ -702,7 +711,8 @@ def _process( | |||
process_and_sign_template, | |||
provisioning_profile = None, | |||
rule_descriptor, | |||
rule_label): | |||
rule_label, | |||
env = None): |
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.
[question] Why default value to None? Can this be mandatory?
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 did it because there may be other potential users for _process
method that do not call it with env
parameter. If we do it mandatory, it may break something in other peace of code that does not require env for itself.
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.
Could you test that, make env
mandatory and see what other places are using this?
Context:
- Not sure if there are any other places using this. Maybe you can make it mandatory and it just works
- In case of new code is written that needs this function, having this optional can lead to the same problem you are experiencing now
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 found a lot of places that use it - ios_rules (our case, fixed in this PR), watchos_rules, macos_rules, tvos_rules, xcframework_rules. I would rather save env = None
for _process
method so far and make separate PRs with tests for other platforms if it's necessary.
c4b6636
to
f3fe5b3
Compare
f3fe5b3
to
31c218f
Compare
Related PR upstream: bazelbuild#2232 |
No description provided.