bazelbuild / bazelbuild/examples

Mac internal git libs buggy

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
957
Forks
578
Avg merge
3d 22h
Merged PRs (30d)
1

Description

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](https://github.com/bazelbuild/examples/files/5417274/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())`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.