Skip to content

[2.x] Respect scalaOrganization in compiler bridge resolution#8732

Merged
eed3si9n merged 1 commit intosbt:developfrom
tanishiking:custom-scala-org
Feb 21, 2026
Merged

[2.x] Respect scalaOrganization in compiler bridge resolution#8732
eed3si9n merged 1 commit intosbt:developfrom
tanishiking:custom-scala-org

Conversation

@tanishiking
Copy link
Copy Markdown
Contributor

fix #8731

Problem
scalaOrganization was ignored during compiler bridge resolution because ZincLmUtil.getDefaultBridgeModule hard-coded ScalaArtifacts.Organization (org.scala-lang).

Solution
Add a scalaOrganization parameter to ZincLmUtil methods, and passing scalaOrganization value to those methods.

I'm wondering how can we test this change, we can write scripted tests that resolves io.github.scala-wasm repo, but relying on external repositories might be fragile?

Generated-by: Claude Opus 4.6

@eed3si9n
Copy link
Copy Markdown
Member

I'm wondering how can we test this change, we can write scripted tests that resolves io.github.scala-wasm repo, but relying on external repositories might be fragile?

Relying on external repo is ok for scripted tests (we already have many of them). If it starts failing we'll just disable it, but it would be good to have an integration test to prove out an end-to-end scenario.

@eed3si9n eed3si9n changed the title [2.x and 1.x] Respect scalaOrganization in compiler bridge resolution [2.x] Respect scalaOrganization in compiler bridge resolution Feb 12, 2026
@tanishiking
Copy link
Copy Markdown
Contributor Author

Thanks, added a scripted tests to verify scalaOrganization work, using io.github.scala-wasm for testing, but if there's more reliable org, let me know.
(Sorry for the delayed reply, I was sick last week 😷 )
@eed3si9n

@eed3si9n
Copy link
Copy Markdown
Member

(Sorry for the delayed reply, I was sick last week 😷 )

Welcome back, and hope you're feeling better.

@eed3si9n
Copy link
Copy Markdown
Member

Mima is failing but it's internal class so feel free to add excludes:

exclude[DirectMissingMethodProblem]("sbt.internal.inc.ZincLmUtil.*"),

**Problem**
`scalaOrganization` was ignored during compiler bridge resolution because `ZincLmUtil.getDefaultBridgeModule` hard-coded `ScalaArtifacts.Organization` (`org.scala-lang`).

**Solution**
Add a `scalaOrganization` parameter to `ZincLmUtil` methods, and passing `scalaOrganization` value to those methods.

Generated-by: Claude Opus 4.6
@tanishiking
Copy link
Copy Markdown
Contributor Author

Thanks! now CI passed 👍

Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tanishiking!

@eed3si9n eed3si9n merged commit 4a5701c into sbt:develop Feb 21, 2026
15 checks passed
eed3si9n pushed a commit to eed3si9n/sbt that referenced this pull request Feb 23, 2026
…8732)

**Problem**
`scalaOrganization` was ignored during compiler bridge resolution because `ZincLmUtil.getDefaultBridgeModule` hard-coded `ScalaArtifacts.Organization` (`org.scala-lang`).

**Solution**
Add a `scalaOrganization` parameter to `ZincLmUtil` methods, and passing `scalaOrganization` value to those methods.

Generated-by: Claude Opus 4.6
eed3si9n added a commit that referenced this pull request Feb 23, 2026
… (#8799)

**Problem**
`scalaOrganization` was ignored during compiler bridge resolution because `ZincLmUtil.getDefaultBridgeModule` hard-coded `ScalaArtifacts.Organization` (`org.scala-lang`).

**Solution**
Add a `scalaOrganization` parameter to `ZincLmUtil` methods, and passing `scalaOrganization` value to those methods.

Generated-by: Claude Opus 4.6

Co-authored-by: Rikito Taniguchi <[email protected]>
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.

Compiler bridge resolution ignores scalaOrganization

2 participants