Skip to content

Commit f6cccae

Browse files
Googlercopybara-github
Googler
authored andcommitted
* add change to allow blaze info to skip Starlark build settings that start with --no prefix
* add unit tests for both info and clean commands PiperOrigin-RevId: 424863510
1 parent 1e53b1f commit f6cccae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/runtime/StarlarkOptionsParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public static Pair<ImmutableList<String>, ImmutableList<String>> removeStarlarkO
330330
String potentialStarlarkFlag = name.substring(2);
331331
// Check if the string uses the "no" prefix for setting boolean flags to false, trim
332332
// off "no" if so.
333-
if (name.startsWith("no")) {
333+
if (potentialStarlarkFlag.startsWith("no")) {
334334
potentialStarlarkFlag = potentialStarlarkFlag.substring(2);
335335
}
336336
// Check if the string contains a value, trim off the value if so.

0 commit comments

Comments
 (0)