summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/target_client.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-05 18:07:57 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-05 18:52:51 +0100
commitc40965da1a5b3c0f51168f6b0d08242b3dc5bf24 (patch)
tree9397897c7c5f366ca5f8dcd9b02d6d90f0a22080 /src/buildtool/serve_api/remote/target_client.cpp
parent29d3d2f5065169e4e5c05a41576b5977d3ac7cdd (diff)
downloadjustbuild-c40965da1a5b3c0f51168f6b0d08242b3dc5bf24.tar.gz
distdir serving: do not confuse hashes
When just serve has to create a distdir from files known to it, there are two kind of hashes involved. - The requests, as well as the resulting tree always refer to git identifiers. - Additionally, files can be stored in the local CAS of the serve instance. This CAS might use a different hash, e.g., plain sha256. Therefore, we cannot simply forward the hash from the request to a lookup in our local CAS; fortunately, when we add a file to the local CAS, we are told the value of the applicable hash, represented as bazel digest, hence we can simply remember essentially this value (converting it to unprefixed form when running in native mode, as in the following we need the hash as it is part of an artifact digest).
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.cpp')
0 files changed, 0 insertions, 0 deletions