aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/SkylarkImportsTest.java
diff options
context:
space:
mode:
authorGravatar ccalvarin <ccalvarin@google.com>2018-03-01 07:29:45 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-01 07:31:56 -0800
commit06e687495b4c85f86215c7cc7f1a01dc7f6709f9 (patch)
tree3d746e0261d26e1061b5d6f9f1685a937984fa2f /src/test/java/com/google/devtools/build/lib/syntax/SkylarkImportsTest.java
parent08b66c78919bbaa947af30c1c987971c45ac2bcd (diff)
Fix invocation policy's handling of the null default when filtering values.
For a filter on option values (either by whitelist, allow_values, or blacklist, disallow_values), one of the options for what to do when encountering a disallowed value is to replace it with the default. This default must be itself an allowed value for this to make sense, so this is checked. This check, however, shouldn't apply to flags that are null by default, since these flags' default value is not parsed by the converter, so there is no guarantee that there exists an accepted user-input value that would also set the value to NULL. In these cases, we assume that "unset" is a distinct value that is always allowed. RELNOTES: None. PiperOrigin-RevId: 187475696
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/SkylarkImportsTest.java')
0 files changed, 0 insertions, 0 deletions