diff options
author | 2017-06-19 16:55:24 -0400 | |
---|---|---|
committer | 2017-06-20 14:35:24 -0400 | |
commit | bfd1d3384b41ac9e563afe5c95afa010d8c19f4a (patch) | |
tree | 275fb466b04a28b668685655f7473d4b32f863da /src/tools/remote_worker | |
parent | 44dd226a540ace2ef1c348f778512616de82ce31 (diff) |
Adding support for SHA256 for remote execution. Switch remote execution to use
the currently defined hash function for blobs. Some refactoring. Adding an option to set the hash function in the remote worker, defaulting to the current behavior (unfortunately it is a build option, have not found a clean way to specify it at runtime).
BUG=62622420
TESTED=remote worker
RELNOTES: none
PiperOrigin-RevId: 159473116
Diffstat (limited to 'src/tools/remote_worker')
-rw-r--r-- | src/tools/remote_worker/BUILD | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/remote_worker/BUILD b/src/tools/remote_worker/BUILD index 095dda41b7..ed5351d039 100644 --- a/src/tools/remote_worker/BUILD +++ b/src/tools/remote_worker/BUILD @@ -6,8 +6,12 @@ filegroup( java_binary( name = "remote_worker", - # Enables REST for Hazelcast server for testing. - jvm_flags = ["-Dhazelcast.rest.enabled=true"], + jvm_flags = [ + # Enables REST for Hazelcast server for testing. + "-Dhazelcast.rest.enabled=true", + # Set this to the same function that you run Bazel with. + "-Dbazel.DigestFunction=SHA1", + ], main_class = "com.google.devtools.build.remote.RemoteWorker", visibility = ["//visibility:public"], runtime_deps = ["//src/tools/remote_worker/src/main/java/com/google/devtools/build/remote"], |