Skip to content

Commit

Permalink
* add change to allow blaze info to skip Starlark build settings that…
Browse files Browse the repository at this point in the history
… start with --no prefix (bazelbuild#16258)

* add unit tests for both info and clean commands

PiperOrigin-RevId: 424863510

Co-authored-by: Googler <noreply@google.com>
  • Loading branch information
Ryan Beasley and Googler committed Sep 13, 2022
1 parent 1e25152 commit ceed7f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static Pair<ImmutableList<String>, ImmutableList<String>> removeStarlarkO
String potentialStarlarkFlag = name.substring(2);
// Check if the string uses the "no" prefix for setting boolean flags to false, trim
// off "no" if so.
if (name.startsWith("no")) {
if (potentialStarlarkFlag.startsWith("no")) {
potentialStarlarkFlag = potentialStarlarkFlag.substring(2);
}
// Check if the string contains a value, trim off the value if so.
Expand Down

0 comments on commit ceed7f1

Please sign in to comment.