From a620c847292a769d2a1ea307efb7bcd87c7adb6c Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 6 Sep 2024 15:49:19 +0200 Subject: [PATCH] Fix test --- .../build/lib/bazel/bzlmod/ModuleFileFunctionTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/google/devtools/build/lib/bazel/bzlmod/ModuleFileFunctionTest.java b/src/test/java/com/google/devtools/build/lib/bazel/bzlmod/ModuleFileFunctionTest.java index 4857b883d030bd..3ece85c099b30a 100644 --- a/src/test/java/com/google/devtools/build/lib/bazel/bzlmod/ModuleFileFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/bazel/bzlmod/ModuleFileFunctionTest.java @@ -25,6 +25,7 @@ import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; +import com.google.devtools.build.lib.actions.FileStateValue; import com.google.devtools.build.lib.actions.FileValue; import com.google.devtools.build.lib.analysis.BlazeDirectories; import com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider; @@ -1756,13 +1757,13 @@ public void testSingleVersionOverridePatches() throws Exception { """ --- a/MODULE.bazel +++ b/MODULE.bazel - @@ -1,1 +1,3 @@ + @@ -1,1 +1,2 @@ module(name='bbb',version='1.0',bazel_compatibility=[">=7.0.0"]) +bazel_dep(name='ccc',version='2.0') """); differencer.invalidate( ImmutableList.of( - FileValue.key(RootedPath.toRootedPath(Root.fromPath(rootDirectory), otherPatch)))); + FileStateValue.key(RootedPath.toRootedPath(Root.fromPath(rootDirectory), otherPatch)))); result = evaluator.evaluate(ImmutableList.of(moduleFileKey), evaluationContext); if (result.hasError()) {