summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_cas_reader.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-29 09:18:09 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-30 17:17:09 +0200
commitdd12fcb5eea5970ac8ef6acd7a200c1e92ce81ea (patch)
tree1d7fcfb366f45ca11a908ecc90f3f55d4c2e6618 /src/buildtool/execution_api/local/local_cas_reader.cpp
parent98884d6d3f5c31efb3390ab75f1952dcdff0221c (diff)
downloadjustbuild-dd12fcb5eea5970ac8ef6acd7a200c1e92ce81ea.tar.gz
Replace bazel_re::Digest in GitRepo::SymlinksCheckFunc callback
...with ArtifactDigest.
Diffstat (limited to 'src/buildtool/execution_api/local/local_cas_reader.cpp')
-rw-r--r--src/buildtool/execution_api/local/local_cas_reader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/local/local_cas_reader.cpp b/src/buildtool/execution_api/local/local_cas_reader.cpp
index 56915fa9..3e5ebe7b 100644
--- a/src/buildtool/execution_api/local/local_cas_reader.cpp
+++ b/src/buildtool/execution_api/local/local_cas_reader.cpp
@@ -87,10 +87,10 @@ auto LocalCasReader::ReadGitTree(ArtifactDigest const& digest) const noexcept
if (auto const path = cas_.TreePath(digest)) {
if (auto const content = FileSystemManager::ReadFile(*path)) {
auto check_symlinks =
- [this](std::vector<bazel_re::Digest> const& ids) {
+ [&cas = cas_](std::vector<ArtifactDigest> const& ids) {
for (auto const& id : ids) {
- auto link_path = cas_.BlobPath(id,
- /*is_executable=*/false);
+ auto link_path = cas.BlobPath(id,
+ /*is_executable=*/false);
if (not link_path) {
return false;
}