Skip to content

progress: replace hashstructure with explicit warning comparison - #4076

Merged
crazy-max merged 1 commit into
docker:masterfrom
crazy-max:remove-hashstructure
Sep 30, 2026
Merged

crazy-max merged 1 commit into
docker:masterfrom
crazy-max:remove-hashstructure

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Warning deduplication currently clears SourceInfo.Definition on a shallow copy, which also modifies the original warning through the shared pointer. Replace reflection-based hashing with explicit comparison so deduplication ignores vertex and source definitions without modifying its inputs.

This also removes the archived hashstructure dependency and preserves the order of first occurrences.

@crazy-max crazy-max added this to the v0.38.0 milestone Sep 14, 2026
@crazy-max
crazy-max marked this pull request as ready for review September 14, 2026 07:11
Deduplicate warnings without mutating their source definitions and preserve the order of first occurrences. Remove the hashstructure dependency and add coverage for warning equality and input preservation.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max merged commit 672ff8b into docker:master Sep 30, 2026
228 of 229 checks passed
@crazy-max
crazy-max deleted the remove-hashstructure branch September 30, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants