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

Separate Scala REPL classpath from user dependencies #2607

Merged
merged 1 commit into from Dec 6, 2023

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Dec 5, 2023

Fixes #2582

This separates the Scala REPL classpath from user dependencies classpath, preventing clashes and unintended bumps of compiler dependencies.

This also allows to use the recent jna version on the Scala REPL with aarch64 Java releases, for more details read #2582 (comment)

NOTE: this only separates the Scala REPL, and not the Ammonite REPL.
Ammonite REPL does not support a --classpath argument.
It would likely be possible to either exclude transitive compiler dependencies in the user dependencies when launching the Ammonite REPL, or preload deps with a script to prevent clashes there, too.
However, as the Ammonite REPL does not have much in terms of dependencies in the first place, this is perhaps not much of an issue, really.
Isolating the Ammonite REPL classpath is out of the scope of this PR, either way.

Copy link
Member

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gedochao Gedochao merged commit 3b12359 into VirtusLab:main Dec 6, 2023
58 checks passed
@Gedochao Gedochao deleted the maintenance/fix-repl-cp branch December 6, 2023 14:16
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.

REPL fails to start with scalameta as dep
3 participants