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:
parent
2b695826d7
commit
6c9aed1f34
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ← outDir⊸WriteEntry¨ entries
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue