From 567c1faba3dbeaf368cce2971f12ce1f58f5a57a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 29 Jun 2023 11:59:23 +0200 Subject: 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. --- src/buildtool/execution_api/local/local_api.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/local/local_api.hpp') 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; } -- cgit v1.2.3