Skip to content

Commit

Permalink
Clarify that repository_ctx.os.{arch,name} are lower case
Browse files Browse the repository at this point in the history
Closes #16063.

PiperOrigin-RevId: 473218041
Change-Id: I554484064fb37b9504200b42daa148c63a0c6e56
  • Loading branch information
fmeum authored and copybara-github committed Sep 9, 2022
1 parent 6b0a58d commit 8350ff4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ImmutableMap<String, String> getEnvironmentVariables() {
structField = true,
doc =
"A string identifying the operating system Bazel is running on (the value of the"
+ " \"os.name\" Java property).")
+ " \"os.name\" Java property converted to lower case).")
public String getName() {
return System.getProperty("os.name").toLowerCase(Locale.ROOT);
}
Expand All @@ -62,7 +62,7 @@ public String getName() {
structField = true,
doc =
"A string identifying the architecture Bazel is running on (the value of the \"os.arch\""
+ " Java property).")
+ " Java property converted to lower case).")
public String getArch() {
return System.getProperty("os.arch").toLowerCase(Locale.ROOT);
}
Expand Down

0 comments on commit 8350ff4

Please sign in to comment.