Skip to content

Commit

Permalink
Trim Workspace Status values (#23922)
Browse files Browse the repository at this point in the history
On windows, bazel will run the workspace_status_command, and receive
carriage return characters \r even if the workspace_status_command did
not include them.

Fixes #13442

PiperOrigin-RevId: 684055158
Change-Id: Idd3bd9c954d64b0a2d674dd7d90cf61c00955917

Co-authored-by: Googler <tomrenn@google.com>
  • Loading branch information
tomrenn and Googler authored Oct 9, 2024
1 parent 3a8bfb4 commit ab63737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private static Map<String, String> parseWorkspaceStatus(String input) {
for (String line : input.trim().split("\n")) {
String[] splitLine = line.split(" ", 2);
if (splitLine.length >= 2) {
result.put(splitLine[0], splitLine[1]);
result.put(splitLine[0], splitLine[1].trim());
}
}

Expand Down

0 comments on commit ab63737

Please sign in to comment.