feat(sterni/blërg): check that entry IDs are unique

Otherwise, two distinct entries would link to the same location with the
older entry “winning”.

Change-Id: I73cce835c110fcce0161c9581cc415697a7d74ab
Reviewed-on: https://cl.tvl.fyi/c/depot/+/13113
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
sterni 2025-02-05 13:50:07 +01:00 committed by clbot
parent 2b695826d7
commit 6c9aed1f34

View file

@ -163,7 +163,7 @@ config ← {
}
entries (<"time") (((•ns.Get˜¨))) {𝕩.Entries @}¨ config.backends
# TODO(sterni): assert id uniqueness
"All entry IDs must be unique"!(=) •ns.Get"id"¨ entries
MkDirP outDir
entryIndex outDirWriteEntry¨ entries