diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-08 11:35:24 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-04-08 13:05:58 +0200 |
commit | 29a296143913d12ff6a5b8a10e5904cd2c58cc29 (patch) | |
tree | 61ae9add85a1435e3a43661ba68fd05781f7ab18 /src/buildtool/common/tree_overlay.hpp | |
parent | e401d33c3266752aeb4cc4fc41b322df8ee3851b (diff) | |
download | justbuild-29a296143913d12ff6a5b8a10e5904cd2c58cc29.tar.gz |
Keep identifiers for actions, trees, and tree_overlays disjoint
While our traverser correctly keeps separate identifier spaces for
those entities, having disjoint identifiers allows easier reading
of log messages and more simple reporting of origins of actions.
Diffstat (limited to 'src/buildtool/common/tree_overlay.hpp')
-rw-r--r-- | src/buildtool/common/tree_overlay.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/common/tree_overlay.hpp b/src/buildtool/common/tree_overlay.hpp index 1b7faaed..69b992a2 100644 --- a/src/buildtool/common/tree_overlay.hpp +++ b/src/buildtool/common/tree_overlay.hpp @@ -103,7 +103,8 @@ class TreeOverlay { // identification of trees. SHA256 is used. HashFunction const hash_function{HashFunction::Type::PlainSHA256}; return hash_function - .PlainHashData(ComputeDescription(trees, disjoint).dump()) + .PlainHashData(fmt::format( + "TREE_OVERLAY:{}", ComputeDescription(trees, disjoint).dump())) .HexString(); } |