summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/distdir_git_map.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-07 12:51:15 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-07 13:05:07 +0100
commitb6c8e0192cf9a05d502e24727cfdb69afe2b314d (patch)
treef4704d116c88a3c9478c4afcc6887d1974823b3d /src/other_tools/root_maps/distdir_git_map.cpp
parentb958c67a9270063ada8d6800e022e3489ff3d205 (diff)
downloadjustbuild-b6c8e0192cf9a05d502e24727cfdb69afe2b314d.tar.gz
distdir setup: do not ask remote-excution endpoint for tree
Asking the remote-exeuction endpoint for the tree means, that, upon success, we fetch every archive from the remote execution endpoint, even those that we could get from a provided distdir. As our preference is to only use the network if necessary, simply use the standard way of creating a distdir: create it locally and for each file, try to get it from local resources first, then from the remote-execution endpoint, and finally from other network resources.
Diffstat (limited to 'src/other_tools/root_maps/distdir_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/distdir_git_map.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/other_tools/root_maps/distdir_git_map.cpp b/src/other_tools/root_maps/distdir_git_map.cpp
index 2fc523f1..cc44c05c 100644
--- a/src/other_tools/root_maps/distdir_git_map.cpp
+++ b/src/other_tools/root_maps/distdir_git_map.cpp
@@ -515,21 +515,6 @@ auto CreateDistdirGitMap(
}
}
}
- // check the remote CAS for the tree
- if (remote_api and
- remote_api.value()->RetrieveToCas(
- {Artifact::ObjectInfo{.digest = digest,
- .type = ObjectType::Tree}},
- local_api)) {
- ImportFromCASAndSetRoot(key,
- distdir_tree_id_file,
- import_to_git_map,
- ts,
- setter,
- logger);
- // done!
- return;
- }
// we could not set the root as present using the CAS tree
// invariant, so now we need to ensure we have all individual blobs