Skip to content

Add MultiCoalescer#1557

Closed
RTann wants to merge 5 commits intoquay:mainfrom
RTann:go-java-coalesce
Closed

Add MultiCoalescer#1557
RTann wants to merge 5 commits intoquay:mainfrom
RTann:go-java-coalesce

Conversation

@RTann
Copy link
Copy Markdown
Contributor

@RTann RTann commented May 30, 2025

The new (*language.coalesce).Coalesce function does not work well when there are multiple packages under the same Package DB. This is common for Go and Java packages, so this solution is insufficient for those two ecosystems.

This change brings back the old, language-specific Coalesce method but puts it in the common language package, as all of the old coalescers for languages were essentially the same (see the change which added the language package here. This will just be used by Go and Java at this time.

Also, instead of mapping from package db -> package, (*language.coalesce).Coalesce now maps from filepath -> package. That's because the Filepath field is a more accurate representation of where the package is located than PackageDB. For example, Python packages have a PackageDB set to the directory in which the Egg or Wheel is located instead of the location of Egg/Wheel

RTann added 4 commits May 30, 2025 14:00
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Signed-off-by: RTann <rtannenb@redhat.com>
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Signed-off-by: RTann <rtannenb@redhat.com>
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Signed-off-by: RTann <rtannenb@redhat.com>
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Signed-off-by: RTann <rtannenb@redhat.com>
@RTann RTann marked this pull request as ready for review May 30, 2025 22:50
@RTann RTann requested a review from a team as a code owner May 30, 2025 22:50
@RTann RTann requested review from crozzy and hdonnay and removed request for a team May 30, 2025 22:50
Signed-off-by: RTann <rtannenb@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@crozzy
Copy link
Copy Markdown
Contributor

crozzy commented Jun 4, 2025

I think this moot now and we should investigate another solution.

@RTann RTann closed this Jun 4, 2025
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.

2 participants