summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_api.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/local/local_api.hpp')
-rw-r--r--src/buildtool/execution_api/local/local_api.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp
index 87296414..64e89203 100644
--- a/src/buildtool/execution_api/local/local_api.hpp
+++ b/src/buildtool/execution_api/local/local_api.hpp
@@ -206,8 +206,9 @@ class LocalApi final : public IExecutionApi {
return false;
}
- // Read artifact content.
- auto const& content = FileSystemManager::ReadFile(*path);
+ // Read artifact content (file or symlink).
+ auto const& content =
+ FileSystemManager::ReadContentAtPath(*path, info.type);
if (not content) {
return false;
}