diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-29 09:18:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-30 17:17:09 +0200 |
commit | dd12fcb5eea5970ac8ef6acd7a200c1e92ce81ea (patch) | |
tree | 1d7fcfb366f45ca11a908ecc90f3f55d4c2e6618 /src/buildtool/file_system/git_tree.cpp | |
parent | 98884d6d3f5c31efb3390ab75f1952dcdff0221c (diff) | |
download | justbuild-dd12fcb5eea5970ac8ef6acd7a200c1e92ce81ea.tar.gz |
Replace bazel_re::Digest in GitRepo::SymlinksCheckFunc callback
...with ArtifactDigest.
Diffstat (limited to 'src/buildtool/file_system/git_tree.cpp')
-rw-r--r-- | src/buildtool/file_system/git_tree.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildtool/file_system/git_tree.cpp b/src/buildtool/file_system/git_tree.cpp index e0b25593..ad7a1c5b 100644 --- a/src/buildtool/file_system/git_tree.cpp +++ b/src/buildtool/file_system/git_tree.cpp @@ -63,11 +63,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); }); }; |