diff options
author | 2018-07-26 14:38:51 -0700 | |
---|---|---|
committer | 2018-07-26 14:40:16 -0700 | |
commit | 7e87730de985b7099b9b683571d58efdaab70890 (patch) | |
tree | 42f4bba0c0f6d99455a68fc6beead8d2edb8fc08 /src/main/java/com/google/devtools/build/lib/skyframe/serialization | |
parent | 0ccfde8b8bb646166a4f45c8630e8fe174f764f4 (diff) |
Remove default MD5 in most of Bazel's virtual filesystems.
This forces the ex-default to be explicit in a lot of tests, but I'd rather that than have the risk of implicit md5-use in production code.
To keep this CL smaller, do not remove the default from UnixFS quite yet.
RELNOTES: None.
PiperOrigin-RevId: 206223521
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/serialization')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils/FsUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils/FsUtils.java b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils/FsUtils.java index e244098f32..1b9e7bbf4f 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils/FsUtils.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils/FsUtils.java @@ -14,6 +14,7 @@ package com.google.devtools.build.lib.skyframe.serialization.testutils; +import com.google.devtools.build.lib.vfs.DigestHashFunction; import com.google.devtools.build.lib.vfs.FileSystem; import com.google.devtools.build.lib.vfs.PathFragment; import com.google.devtools.build.lib.vfs.Root; @@ -23,7 +24,7 @@ import com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem; /** Common FileSystem related items for serialization tests. */ public class FsUtils { - public static final FileSystem TEST_FILESYSTEM = new InMemoryFileSystem(); + public static final FileSystem TEST_FILESYSTEM = new InMemoryFileSystem(DigestHashFunction.MD5); public static final RootedPath TEST_ROOT = RootedPath.toRootedPath( |