Skip to content

Commit ceed7f1

Browse files
Ryan BeasleyGoogler
andauthored
* add change to allow blaze info to skip Starlark build settings that start with --no prefix (bazelbuild#16258)
* add unit tests for both info and clean commands PiperOrigin-RevId: 424863510 Co-authored-by: Googler <[email protected]>
1 parent 1e25152 commit ceed7f1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public static Pair<ImmutableList<String>, ImmutableList<String>> removeStarlarkO
333333
String potentialStarlarkFlag = name.substring(2);
334334
// Check if the string uses the "no" prefix for setting boolean flags to false, trim
335335
// off "no" if so.
336-
if (name.startsWith("no")) {
336+
if (potentialStarlarkFlag.startsWith("no")) {
337337
potentialStarlarkFlag = potentialStarlarkFlag.substring(2);
338338
}
339339
// Check if the string contains a value, trim off the value if so.

0 commit comments

Comments
 (0)