Summary
The define_build_option function in ynnpack/build_defs.bzl has a logic error in the native.alias definition (around line 33-41).
Issue
When the explicit_false condition is selected, the alias incorrectly points to ":" + explicit_true instead of ":" + explicit_false:
native.alias(
name = name,
actual = select({
explicit_true: ":" + explicit_true,
explicit_false: ":" + explicit_true, # ← BUG: should be explicit_false
"//conditions:default": ":" + default,
}),
)
Summary
The
define_build_optionfunction inynnpack/build_defs.bzlhas a logic error in thenative.aliasdefinition (around line 33-41).Issue
When the
explicit_falsecondition is selected, the alias incorrectly points to":" + explicit_trueinstead of":" + explicit_false: