From cae2ec50abedb135bbeab2aae95fecebcfe977b3 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 4 Mar 2024 14:06:54 +0100 Subject: serve protocol: support executable distfiles As serve and just-mr share their caching of description-tree association, we also have to change this cache. Thanks to json encoding before hashing, we know that the old and new hash keys do not overlap, so the change is save. As distdirs also keep the respective files in the git root, no new downlaoding will happen either, hence no warning in the CHANGELOG is needed. --- src/buildtool/serve_api/remote/source_tree_client.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buildtool/serve_api/remote/source_tree_client.cpp') diff --git a/src/buildtool/serve_api/remote/source_tree_client.cpp b/src/buildtool/serve_api/remote/source_tree_client.cpp index a998e1a1..0cb93a36 100644 --- a/src/buildtool/serve_api/remote/source_tree_client.cpp +++ b/src/buildtool/serve_api/remote/source_tree_client.cpp @@ -133,6 +133,7 @@ auto SourceTreeClient::ServeDistdirTree( auto* distfile = request.add_distfiles(); distfile->set_name(k); distfile->set_content(v); + distfile->set_executable(false); } request.set_sync_tree(sync_tree); -- cgit v1.2.3