Closed farcop closed 1 year ago
Did you try that? I'll review a PR.
Sorry, I have tested my suggestion and it behaves the same. So the problem is in select() as far as I understand. May be this issue https://github.com/bazelbuild/bazel/issues/8171
Closing this issue.
Inspecting into a select generally does not work. An alternative might be to drop the support for the super deprecated version and make the breaking change explicit.
This way does not work
But this notation works fine:
I suppose this is a bug in this logic https://github.com/bazelbuild/rules_pkg/blob/main/pkg/private/tar/tar.bzl#L318
Proposed fix: Change
if not hasattr(kwargs["files"], "items"):
toif not types.is_dict(kwargs["files"]):