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 provider type checking for AppleDynamicFrameworkProvider migration #2453

Merged

Conversation

luispadron
Copy link
Contributor

@luispadron luispadron commented Apr 24, 2024

With the move of AppleDynamicFramework provider to Starlark doing something like type(provider) will always return "struct". This is behavior we shouldn't have and is now broken in latest Bazel versions.

This PR updates to use hasattr to approximate the type as long as it has the fields we need.

More info: bazelbuild/bazel#22095

@brentleyjones brentleyjones merged commit 559f8ab into master Apr 24, 2024
10 checks passed
@brentleyjones brentleyjones deleted the luis/fix-broken-provider-type-check-in-latest-bazel branch April 24, 2024 19:12
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

Successfully merging this pull request may close these issues.

2 participants