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 action_env for ipa post processor #1

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

MIP9
Copy link

@MIP9 MIP9 commented Sep 4, 2023

No description provided.

@acecilia acecilia self-requested a review September 4, 2023 14:25
@@ -702,7 +711,8 @@ def _process(
process_and_sign_template,
provisioning_profile = None,
rule_descriptor,
rule_label):
rule_label,
env = None):
Copy link
Member

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?

Copy link
Author

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.

Copy link
Member

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

Copy link
Author

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.

@MIP9 MIP9 force-pushed the bugfix/ipa_post_processor_env branch from c4b6636 to f3fe5b3 Compare September 5, 2023 15:54
@MIP9 MIP9 force-pushed the bugfix/ipa_post_processor_env branch from f3fe5b3 to 31c218f Compare September 5, 2023 16:05
@acecilia acecilia merged commit 1c7f3c5 into revolut-mobile:master Sep 5, 2023
@acecilia
Copy link
Member

acecilia commented Sep 5, 2023

Related PR upstream: bazelbuild#2232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants