summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system/git_tree.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/file_system/git_tree.test.cpp')
-rw-r--r--test/buildtool/file_system/git_tree.test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/buildtool/file_system/git_tree.test.cpp b/test/buildtool/file_system/git_tree.test.cpp
index f2cff0ba..c8a0b14d 100644
--- a/test/buildtool/file_system/git_tree.test.cpp
+++ b/test/buildtool/file_system/git_tree.test.cpp
@@ -27,7 +27,6 @@
#include "catch2/catch_test_macros.hpp"
#include "fmt/core.h"
#include "src/buildtool/common/artifact_digest.hpp"
-#include "src/buildtool/common/bazel_types.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
#include "src/buildtool/file_system/git_cas.hpp"
#include "src/buildtool/file_system/git_repo.hpp"
@@ -106,11 +105,10 @@ class SymlinksChecker final {
: cas_{*cas} {}
[[nodiscard]] auto operator()(
- std::vector<bazel_re::Digest> const& ids) const noexcept -> bool {
+ std::vector<ArtifactDigest> const& ids) const noexcept -> bool {
return std::all_of(
- ids.begin(), ids.end(), [&cas = cas_](bazel_re::Digest const& id) {
- auto content = cas.ReadObject(ArtifactDigest(id).hash(),
- /*is_hex_id=*/true);
+ ids.begin(), ids.end(), [&cas = cas_](ArtifactDigest const& id) {
+ auto content = cas.ReadObject(id.hash(), /*is_hex_id=*/true);
return content.has_value() and PathIsNonUpwards(*content);
});
};