diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-13 00:14:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-13 00:18:27 +0900 |
| commit | 487a03b5a3ed9a354ea4f5572c5d509b01951566 (patch) | |
| tree | fa020b369f6ef766ca2b5436162d30e53431e97e /internal/pkg/pkg_test.go | |
| parent | 8f3c22896adc06b6c5f646540924dc3a39170e45 (diff) | |
internal/pkg: deduplicate DCE by ident
This eliminates edge cases where target artifacts do not compare equal.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 4ce4ba6a..9d6757c7 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -1515,6 +1515,8 @@ func TestDependencyCureError(t *testing.T) { makeIdent := func(ident ...byte) pkg.Artifact { var a overrideIdent copy(a.id[:], ident) + // does not compare equal + a.TrivialArtifact = new(stubArtifact) return a } |
