diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-11-13 12:25:27 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-11-15 20:19:18 +0100 |
commit | 44134613ab2f52606e9ae3a35bdb8a2b37879b54 (patch) | |
tree | 5941a6071745bdb554144cd97c64cc4be9176e57 | |
parent | 3930fa41a1f43e90e2663d0ba40691647655ec6c (diff) | |
download | justbuild-44134613ab2f52606e9ae3a35bdb8a2b37879b54.tar.gz |
amend service-target-cache.md
Remove wrong (un-needed) design specifications. When we compute the
TargetCacheKey of an export target, there is no need to check if any
of (recursively) referenced trees is absent. As soon as we deal with
an "absent target" we query just serve. If it is not able to provide
the target cache value, we error out.
-rw-r--r-- | doc/future-designs/service-target-cache.md | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/doc/future-designs/service-target-cache.md b/doc/future-designs/service-target-cache.md index 139fc00a..8dafcea2 100644 --- a/doc/future-designs/service-target-cache.md +++ b/doc/future-designs/service-target-cache.md @@ -223,17 +223,10 @@ If the _target root_ is marked as absent: serve` cannot answer, we break the analysis and inform the user with a proper error message. -Once we know the flexible configuration variables, during the computation of the -`TargetCacheKey`, we need to verify if any of the (recursively) referenced trees -is absent (`ComputeTargetCacheKey`) -- this is checked while building the -repository graph. Once the target cache key is computed, we first verify if we -have it locally. If not and if at least one tree is absent: - - query `just serve` to get the target cache value for the given key. Note that - even if `just serve` cannot provide the target cache value, we can continue - the analysis in the hope that the absent tree is guarded by a closer (inner) - export target. The analysis will fail if, in the continuation, no suitable - target cache values can be retrieved from `just serve`. - + - once we know the flexible configuration variables, we compute the + `TargetCacheKey`. If it is not in the local target cache, we query `just + serve` to get the target cache value for the given key. If it is not able to + provide the target cache value, we error out. ### Auxiliary changes |