Skip to content

Potential issue with Bazel pywrap_library rule #32358

@danilaml

Description

@danilaml

Discovered in tensorflow/tensorflow#100606 .

Looks like pywrap_library is run both before and after selects are evaluated in Bazel, so this https://github.com/openxla/xla/blob/main/third_party/py/rules_pywrap/pywrap.impl.bzl#L373
check could succeed for None values wrapped in select which seems unintended.

Metadata

Metadata

Labels

bugSomething isn't workingstat:awaiting openxla-engAwaiting response from openxla-eng

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions