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 incompatible_restrict_named_params issue #515

Merged
merged 2 commits into from
Aug 8, 2019

Conversation

keith
Copy link
Member

@keith keith commented Jul 30, 2019

@c-parsons
Copy link
Contributor

incompatible_restrict_named_params only affects builtins, of which embedded_bundles_partial is not. I'm confused as to what this PR has to do with incompatible_restrict_named_params.

@keith
Copy link
Member Author

keith commented Jul 30, 2019

Here's what I'm seeing with 0.28.0:

bazel build --config=QA --config=ci --apple_platform_type=ios //Modules/... --incompatible_restrict_named_params
INFO: Invocation ID: 1a11e921-4911-4f86-a455-10af65f2a9ee
Loading:
Loading: 0 packages loaded
Analyzing: 2224 targets (485 packages loaded, 0 targets configured)
ERROR: /Users/iosci/Desktop/src/iosci41/lyft/ios/Modules/ResourceSupport/BUILD:8:1: in ios_unit_test rule //Modules/ResourceSupport:ResourceSupportTests:
Traceback (most recent call last):
File "/Users/iosci/Desktop/src/iosci41/lyft/ios/Modules/ResourceSupport/BUILD", line 8
ios_unit_test(name = 'ResourceSupportTests')
File "/private/var/tmp/_bazel_iosci/344968675a7422486244096dde4e0573/external/build_bazel_rules_apple/apple/internal/testing/ios_rules.bzl", line 44, in _ios_unit_test_impl
apple_test_rule_support.apple_test_impl(ctx, "xctest", extra_providers = [Io...()])
File "/private/var/tmp/_bazel_iosci/344968675a7422486244096dde4e0573/external/build_bazel_rules_apple/apple/internal/testing/apple_test_rule_support.bzl", line 431, in apple_test_rule_support.apple_test_impl
apple_test_bundle_support.apple_test_bundle_impl(ctx)
File "/private/var/tmp/_bazel_iosci/344968675a7422486244096dde4e0573/external/build_bazel_rules_apple/apple/internal/testing/apple_test_bundle_support.bzl", line 98, in apple_test_bundle_support.apple_test_bundle_impl
partials.embedded_bundles_partial(bundle_embedded_bundles = True, em... []))
File "/private/var/tmp/_bazel_iosci/344968675a7422486244096dde4e0573/external/build_bazel_rules_apple/apple/internal/testing/apple_test_bundle_support.bzl", line 100, in partials.embedded_bundles_partial
getattr(ctx.attr, "frameworks", default = [])
unexpected keyword 'default', for call to function getattr(x, name, default = unbound)

@c-parsons
Copy link
Contributor

c-parsons commented Jul 30, 2019

Aha. I really read your PR wrong. My bad.

(I read default as a parameter of embedded_bundles_partial, when really there was a getattr call which was the offender. I need more coffee.)

Indeed, we've made default a positional-only parameter of the builtin getattr. This PR looks good.

@swiple-rules-gardener swiple-rules-gardener merged commit 5d2a701 into bazelbuild:master Aug 8, 2019
swiple-rules-gardener added a commit that referenced this pull request Aug 8, 2019
@thomasvl
Copy link
Member

thomasvl commented Aug 8, 2019

Closing since the change was merged, not sure what github sees it as merged but left this as open.

@keith keith deleted the ks/incompatible branch August 8, 2019 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants