summaryrefslogtreecommitdiff
path: root/src/buildtool/main/add_to_cas.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-29 14:47:12 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-30 17:17:09 +0200
commit74ae139a6df49de37868f723299a600dfd5e90d8 (patch)
tree9a718332d26f3c5280e8c86ebceb4a1b89613e35 /src/buildtool/main/add_to_cas.cpp
parent5ecbcbbcf71ca9fafaddf9a2353fe31a75fb33e4 (diff)
downloadjustbuild-74ae139a6df49de37868f723299a600dfd5e90d8.tar.gz
Replace bazel_re::Digest in BazelMsgFactory (local trees)
...with ArtifactDigest.
Diffstat (limited to 'src/buildtool/main/add_to_cas.cpp')
-rw-r--r--src/buildtool/main/add_to_cas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/main/add_to_cas.cpp b/src/buildtool/main/add_to_cas.cpp
index 7a20af65..73f19502 100644
--- a/src/buildtool/main/add_to_cas.cpp
+++ b/src/buildtool/main/add_to_cas.cpp
@@ -78,15 +78,15 @@ auto AddArtifactsToCas(ToAddArguments const& clargs,
}
auto store_blob =
[&cas](std::filesystem::path const& path,
- auto is_exec) -> std::optional<bazel_re::Digest> {
+ auto is_exec) -> std::optional<ArtifactDigest> {
return cas.StoreBlob</*kOwner=*/true>(path, is_exec);
};
auto store_tree = [&cas](std::string const& content)
- -> std::optional<bazel_re::Digest> {
+ -> std::optional<ArtifactDigest> {
return cas.StoreTree(content);
};
auto store_symlink = [&cas](std::string const& content)
- -> std::optional<bazel_re::Digest> {
+ -> std::optional<ArtifactDigest> {
return cas.StoreBlob(content);
};
digest = BazelMsgFactory::CreateGitTreeDigestFromLocalTree(