aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Brian Silverman <bsilver16384@gmail.com>2015-09-10 21:46:04 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-11 09:45:37 +0000
commit757058c7c49e758acabfa9801a0e79ffe83652e2 (patch)
treeef2231eefb3c45cfc4df6fc782c241a325e0a77d /src/main/java/com/google/devtools/build
parent7ad99cb9061b8663235bffb4590ee0f9bd9c5820 (diff)
Fix BUILD_SCM_* being looked for in the stable status file and test it.
They're actually in the volatile status file, which is where it seems like they belong. Fixes #216. -- Change-Id: Ibec7737538ff5c1003b61d1bd3396948c61886de Reviewed-on: https://bazel-review.googlesource.com/1950 MOS_MIGRATED_REVID=102791996
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/BazelWorkspaceStatusModule.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/BazelWorkspaceStatusModule.java b/src/main/java/com/google/devtools/build/lib/bazel/BazelWorkspaceStatusModule.java
index 5a59cab882..17996f45e6 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/BazelWorkspaceStatusModule.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/BazelWorkspaceStatusModule.java
@@ -239,16 +239,18 @@ public class BazelWorkspaceStatusModule extends BlazeModule {
BuildInfo.BUILD_HOST,
Key.of(KeyType.STRING, "hostname", "redacted"),
BuildInfo.BUILD_USER,
- Key.of(KeyType.STRING, "username", "redacted"),
- BuildInfo.BUILD_SCM_REVISION,
- Key.of(KeyType.STRING, "0", "0"),
- BuildInfo.BUILD_SCM_STATUS,
- Key.of(KeyType.STRING, "", "redacted"));
+ Key.of(KeyType.STRING, "username", "redacted"));
}
@Override
public ImmutableMap<String, Key> getVolatileKeys() {
- return ImmutableMap.of(BuildInfo.BUILD_TIMESTAMP, Key.of(KeyType.INTEGER, "0", "0"));
+ return ImmutableMap.of(
+ BuildInfo.BUILD_TIMESTAMP,
+ Key.of(KeyType.INTEGER, "0", "0"),
+ BuildInfo.BUILD_SCM_REVISION,
+ Key.of(KeyType.STRING, "0", "0"),
+ BuildInfo.BUILD_SCM_STATUS,
+ Key.of(KeyType.STRING, "", "redacted"));
}
}