summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-06-29 11:59:23 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-07-03 10:27:59 +0200
commit567c1faba3dbeaf368cce2971f12ce1f58f5a57a (patch)
treedb067d544d191b9736168a85bb3d021c50cd5f4b /src
parent1a0c23c087666f528fee105f079374a2707f1a64 (diff)
downloadjustbuild-567c1faba3dbeaf368cce2971f12ce1f58f5a57a.tar.gz
local API: Fix bug in uploading missing artifacts
A recent change made it so that the artifact type was wrongly being taken into account when deciding whether the CAS entry of the artifact would be read or not. This meant that non-file artifacts would be skipped from their content being read, resulting in missing CAS artifacts being reported. This fixes the issue by reverting the offending change.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_api/local/local_api.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp
index 64e89203..d699ad4f 100644
--- a/src/buildtool/execution_api/local/local_api.hpp
+++ b/src/buildtool/execution_api/local/local_api.hpp
@@ -207,8 +207,7 @@ class LocalApi final : public IExecutionApi {
}
// Read artifact content (file or symlink).
- auto const& content =
- FileSystemManager::ReadContentAtPath(*path, info.type);
+ auto const& content = FileSystemManager::ReadFile(*path);
if (not content) {
return false;
}