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

Mac internal git libs buggy #184

Open
mcstoufer opened this issue Oct 21, 2020 · 0 comments
Open

Mac internal git libs buggy #184

mcstoufer opened this issue Oct 21, 2020 · 0 comments

Comments

@mcstoufer
Copy link

mcstoufer commented Oct 21, 2020

This is for the basic exemplar found at https://docs.bazel.build/versions/3.7.0/tutorial/ios-app.html
Invoking the build per instructions yields the following internal error. Something about the a function signature mismatch.

This is the WORKSPACE and BUILD file used.
Archive.zip

ERROR: /private/var/tmp/_bazel_vn50v8w/9436d7f4fd0a1cbeb36c80d117002bf1/external/build_bazel_rules_apple/apple/internal/BUILD:478:18: in environment_plist rule @bu load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application") ild_bazel_rules_apple//apple/internal:environment_plist_ios: Traceback (most recent call last): File "/private/var/tmp/_bazel_vn50v8w/9436d7f4fd0a1cbeb36c80d117002bf1/external/build_bazel_rules_apple/apple/internal/environment_plist.bzl", line 39, column 23, in _environment_plist legacy_actions.run( File "/private/var/tmp/_bazel_vn50v8w/9436d7f4fd0a1cbeb36c80d117002bf1/external/build_bazel_rules_apple/apple/internal/utils/legacy_actions.bzl", line 88, column 49, in _run ctx.actions.run(**_kwargs_for_apple_platform(ctx, **kwargs)) File "/private/var/tmp/_bazel_vn50v8w/9436d7f4fd0a1cbeb36c80d117002bf1/external/build_bazel_rules_apple/apple/internal/utils/legacy_actions.bzl", line 63, column 92, in _kwargs_for_apple_platform execution_requirement_dicts.append(apple_support.action_required_execution_requirements(ctx)) File "/private/var/tmp/_bazel_vn50v8w/9436d7f4fd0a1cbeb36c80d117002bf1/external/build_bazel_apple_support/lib/apple_support.bzl", line 187, column 5, in _action_required_execution_requirements def _action_required_execution_requirements(): Error: _action_required_execution_requirements() does not accept positional arguments, but got 1 ERROR: Analysis of target '//ios-app:ios-app' failed; build aborted: Analysis of target '@build_bazel_rules_apple//apple/internal:environment_plist_ios' failed

By removing the 'ctx' param in the following line, the build ran as expected:
/external/build_bazel_rules_apple/apple/internal/utils/legacy_actions.bzl
# Add the execution requirements last to avoid clients overriding this value. execution_requirement_dicts.append(apple_support.action_required_execution_requirements())

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

No branches or pull requests

1 participant