aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-11 04:40:24 +0900
committerOphestra <cat@gensokyo.uk>2026-01-11 04:40:24 +0900
commit63e137856e47bb9cb472fc58ee6ea0b2e6c666b8 (patch)
tree8f79aaf49e8bc154249f27a7df61e6142fd67e36 /internal/pkg/pkg.go
parente1e46504a1939aff927ae47508b0523a7305fb18 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go2
1 files changed, 1 insertions, 1 deletions
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)))