From 02b3627b8ad86186ce90fa1cb0cd59066ee5d51c Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sat, 10 Jul 2021 13:24:54 +0200 Subject: reduce: add key and indexed ts for exact matches --- skate/reduce.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'skate') diff --git a/skate/reduce.go b/skate/reduce.go index d2ce820..f44f6df 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -65,6 +65,8 @@ func ZippyExact(releases, refs io.Reader, matchResult MatchResult, w io.Writer) continue } bref.Reset() + bref.Key = fmt.Sprintf("%s_%d", ref.ReleaseIdent, ref.Index+1) + bref.IndexedTs = time.Now().UTC().Format(time.RFC3339) bref.SourceReleaseIdent = ref.ReleaseIdent bref.SourceWorkIdent = ref.WorkIdent bref.SourceReleaseStage = ref.ReleaseStage -- cgit v1.2.3