From f7e4ebf0e2913ff1b987e40baab5c0c809e6c0de Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Thu, 13 Oct 2022 11:39:13 +0200 Subject: Remove default value of ArtifactDigest::Create template parameter This enforces the explicit specification, which object type, either file or tree, should be used to create an artifact digest. This also avoids subtile errors at locations as in the previous commit, where files as well as trees are supposed to be handled, but digest creation mistakenly defaults to file object type. --- test/utils/remote_execution/bazel_action_creator.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/utils/remote_execution/bazel_action_creator.hpp') diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp index 6abc9e32..f6ed773a 100644 --- a/test/utils/remote_execution/bazel_action_creator.hpp +++ b/test/utils/remote_execution/bazel_action_creator.hpp @@ -58,12 +58,12 @@ }); auto cmd_data = cmd.SerializeAsString(); - auto cmd_id = ArtifactDigest::Create(cmd_data); + auto cmd_id = ArtifactDigest::Create(cmd_data); blobs.emplace_back(cmd_id, cmd_data); bazel_re::Directory empty_dir; auto dir_data = empty_dir.SerializeAsString(); - auto dir_id = ArtifactDigest::Create(dir_data); + auto dir_id = ArtifactDigest::Create(dir_data); blobs.emplace_back(dir_id, dir_data); bazel_re::Action action; @@ -74,7 +74,7 @@ gsl::owner{new bazel_re::Digest{dir_id}}); auto action_data = action.SerializeAsString(); - auto action_id = ArtifactDigest::Create(action_data); + auto action_id = ArtifactDigest::Create(action_data); blobs.emplace_back(action_id, action_data); BazelCasClient cas_client(info->host, info->port); -- cgit v1.2.3