From 63e137856e47bb9cb472fc58ee6ea0b2e6c666b8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 11 Jan 2026 04:40:24 +0900 Subject: internal/pkg: do not discard the result of compact This result was mistakenly unused resulting in incorrect identifiers for artifacts with duplicate dependencies. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg/pkg.go') diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index 362e4121..60898b48 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -314,7 +314,7 @@ func (k Kind) Ident(params []byte, deps ...Artifact) ID { slices.SortFunc(identifiers, func(a, b extIdent) int { return bytes.Compare(a[:], b[:]) }) - slices.Compact(identifiers) + identifiers = slices.Compact(identifiers) h := sha512.New384() h.Write(binary.LittleEndian.AppendUint64(nil, uint64(k))) -- cgit v1.3.1