Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shade scalajs.ir under dotty.tools #21765

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Shade scalajs.ir under dotty.tools #21765

merged 1 commit into from
Oct 14, 2024

Conversation

adpi2
Copy link
Member

@adpi2 adpi2 commented Oct 14, 2024

Because scala3-compiler contains a copy of scalajs-ir, they conflict with each other when being in the same classpath. This was found when trying to migrate the sbt-scalajs to sbt 2, because sbt-scalajs depends on scalajs-ir and on sbt, which depends on scala3-compiler. The related issue is sbt/sbt#7709.

The solution is to shade the compiler version of scalajs-ir under its own package: dotty.tool.sjs.ir. The compiler uses the scalajs-ir internally but it does not need to expose it.

@adpi2 adpi2 requested a review from sjrd October 14, 2024 14:57
@sjrd sjrd enabled auto-merge October 14, 2024 15:06
@sjrd sjrd merged commit 1f7f334 into scala:main Oct 14, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants