Skip to content

language: deduplicate packages across layers #1941

Open
BradLugo wants to merge 2 commits into
quay:mainfrom
BradLugo:blugo/dedup-lang-pkgs
Open

language: deduplicate packages across layers #1941
BradLugo wants to merge 2 commits into
quay:mainfrom
BradLugo:blugo/dedup-lang-pkgs

Conversation

@BradLugo

@BradLugo BradLugo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

When the same package appears at the same path across multiple layers, keep only the latest version. Duplicate entries at the same version are collapsed to the topmost layer.

Stacked on top of #1940.

Reimplements the rest of #1275 (first portion was implemented in #1940), which was reverted in #1562.

BradLugo added 2 commits July 6, 2026 12:11
All language ecosystem coalescers shared the same logic: skip layers
without repos, associate packages with repos. The gobin coalescer had
unnecessary repo name/PackageDB prefix filtering since scanners already
ensure only relevant packages appear.

Signed-off-by: Brad Lugo <blugo@redhat.com>
When the same package appears at the same path across multiple layers,
keep only the latest version. Duplicate entries at the same version are
collapsed to the topmost layer.

Signed-off-by: Brad Lugo <blugo@redhat.com>
@BradLugo
BradLugo requested review from a team as code owners July 6, 2026 19:25
@BradLugo
BradLugo requested a review from crozzy July 6, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant