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

Add plugin to copy binary files from the scala 2 artefacts #22480

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

@hamzaremmal hamzaremmal added release-notes Should be mentioned in the release notes needs-minor-release This PR cannot be merged until the next minor release labels Jan 29, 2025
@hamzaremmal hamzaremmal self-assigned this Jan 29, 2025
@hamzaremmal hamzaremmal force-pushed the hr/scala-artefact branch 3 times, most recently from b0059ff to b4f9001 Compare February 6, 2025 16:39
hamzaremmal added a commit that referenced this pull request Feb 7, 2025
…22519)

Scala 2 generates extension methods for Value Classes before pickling
while Scala 3 generates them after.
Now that we are working on compiling the Scala 2 stdlib with dotty
(#22480), and therefore generating tasty files for the stdlib, we will
have to distinguish between scala 2 that was unpickled and scala 2 code
coming from tasty. For that, we currently have a flag, but it is not
very useful apart from some very specific details where a workaround
exists. This PR, removes one of 2 places where this flag is used. The
[second
place](https://github.com/scala/scala3/blob/aa9db1f682de634743af6d7077d5ed752430a487/compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala#L51)
will be removed once we inline the missing symbol in `Predef.scala`
(after #22480) is merged.
hamzaremmal added a commit that referenced this pull request Feb 12, 2025
)

When compiling under `-Ycompile-scala2-library`, we should consider the
source code as Scala 2. This change will allow using Scala 2's erasure
instead of Scala 3's.


Related to #22480
@hamzaremmal hamzaremmal force-pushed the hr/scala-artefact branch 2 times, most recently from 4633da3 to a657522 Compare February 12, 2025 15:41
@hamzaremmal hamzaremmal force-pushed the hr/scala-artefact branch 3 times, most recently from 78b24d1 to 07afa47 Compare February 24, 2025 12:03
@hamzaremmal hamzaremmal marked this pull request as ready for review February 25, 2025 13:53
@hamzaremmal
Copy link
Member Author

We will tackle the issue of generic signatures, and the logic to build the jar artifact in a subsequent PR

@hamzaremmal hamzaremmal requested a review from sjrd February 25, 2025 13:54
@hamzaremmal hamzaremmal assigned sjrd and unassigned hamzaremmal Feb 25, 2025
@hamzaremmal hamzaremmal changed the title Create a scala3-library artefact Add plugin to copy binary files from the scala 2 artefacts Mar 9, 2025
@sjrd sjrd merged commit 9646f65 into scala:main Mar 10, 2025
29 checks passed
@hamzaremmal hamzaremmal deleted the hr/scala-artefact branch March 10, 2025 10:06
@tgodzik
Copy link
Contributor

tgodzik commented Mar 10, 2025

Does it really require minor release or is it just to be on a safe side? Thinking about it in terms of Scala LTS

@sjrd
Copy link
Member

sjrd commented Mar 10, 2025

What would the LTS even do with this, if it were backported?

@tgodzik
Copy link
Contributor

tgodzik commented Mar 10, 2025

Yeah, I might have been overthinking things here.

@tgodzik tgodzik removed release-notes Should be mentioned in the release notes needs-minor-release This PR cannot be merged until the next minor release labels Mar 17, 2025
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.

3 participants