internal/pkg: do not discard the result of compact
All checks were successful
Test / Create distribution (push) Successful in 48s
Test / Sandbox (push) Successful in 2m53s
Test / ShareFS (push) Successful in 4m58s
Test / Hpkg (push) Successful in 5m17s
Test / Sandbox (race detector) (push) Successful in 5m23s
Test / Hakurei (push) Successful in 5m53s
Test / Hakurei (race detector) (push) Successful in 7m37s
Test / Flake checks (push) Successful in 1m43s
All checks were successful
Test / Create distribution (push) Successful in 48s
Test / Sandbox (push) Successful in 2m53s
Test / ShareFS (push) Successful in 4m58s
Test / Hpkg (push) Successful in 5m17s
Test / Sandbox (race detector) (push) Successful in 5m23s
Test / Hakurei (push) Successful in 5m53s
Test / Hakurei (race detector) (push) Successful in 7m37s
Test / Flake checks (push) Successful in 1m43s
This result was mistakenly unused resulting in incorrect identifiers for artifacts with duplicate dependencies. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user