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

* add unit tests for both info and clean commands

PiperOrigin-RevId: 424863510
  • Loading branch information
Googler authored and Copybara-Service committed Jan 28, 2022
1 parent 1e53b1f commit f6cccae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,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 f6cccae

Please sign in to comment.