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.
With the move of
AppleDynamicFramework
provider to Starlark doing something liketype(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: https://github.com/bazelbuild/bazel/issues/22095