Skip to content

Commit

Permalink
Fix execution_requirements for code signing (#1094)
Browse files Browse the repository at this point in the history
Instead of `no-cache` these should be `no-remote`, since the remote machine might not have the certs in the keychain. Also adds the same condition to `ImportedDynamicFrameworkProcessor`.
  • Loading branch information
brentleyjones authored Mar 3, 2021
1 parent 4073a5a commit d49933a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apple/internal/codesigning_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def _generate_codesigning_dossier_action(
# Added so that the output of this action is not cached remotely,
# in case multiple developers sign the same artifact with different
# identities.
execution_requirements["no-cache"] = "1"
execution_requirements["no-remote"] = "1"

for embedded_dossier in embedded_dossiers:
input_files.append(embedded_dossier.dossier_file)
Expand Down Expand Up @@ -585,7 +585,7 @@ def _post_process_and_sign_archive_action(
# Added so that the output of this action is not cached
# remotely, in case multiple developers sign the same artifact
# with different identities.
execution_requirements["no-cache"] = "1"
execution_requirements["no-remote"] = "1"

ipa_post_processor_path = ""
if ipa_post_processor:
Expand Down Expand Up @@ -726,7 +726,7 @@ def _sign_binary_action(
# Added so that the output of this action is not cached remotely,
# in case multiple developers sign the same artifact with different
# identities.
execution_requirements["no-cache"] = "1"
execution_requirements["no-remote"] = "1"

legacy_actions.run_shell(
actions = actions,
Expand Down
5 changes: 5 additions & 0 deletions apple/internal/partials/framework_import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ def _framework_import_partial_impl(
if provisioning_profile:
input_files.append(provisioning_profile)
execution_requirements = {"no-sandbox": "1"}
if platform_prerequisites.platform.is_device:
# Added so that the output of this action is not cached
# remotely, in case multiple developers sign the same artifact
# with different identities.
execution_requirements["no-remote"] = "1"

transitive_inputs = [
resolved_imported_dynamic_framework_processor.inputs,
Expand Down

0 comments on commit d49933a

Please sign in to comment.