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

bugfix: Don't use fullclasspath in sbt plugin #2199

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Nov 22, 2023

Previously, I used fullclasspath for getting the runtime classpath, but I forgot this causes sbt to always compile on bloopInstaall.

Now, I changed to use the same mechanism we use for compile classpath and added a test to make sure this doesn't show up again.

Previously, I used fullclasspath for getting the runtime classpath, but I forgot this causes sbt to always compile on bloopInstaall.

Now, I changed to use the same mechanism we use for compile classpath and added a test to make sure this doesn't show up again.
@tgodzik tgodzik requested a review from adpi2 November 22, 2023 17:26
Comment on lines +1 to +3
> bloopGenerate
> test:bloopGenerate
> checkBloopFiles
Copy link
Member

Choose a reason for hiding this comment

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

How does this test check that the compilation is not triggered?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What we really want to check is that the files are properly generated despite the error. Previously, when we used fullclasspath the bloopInstall task itself would fail and nothing would get generated

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see there is an error in the Obj.scala file

@tgodzik tgodzik merged commit a4d4a27 into scalacenter:main Nov 23, 2023
17 checks passed
@tgodzik tgodzik deleted the avoid-fullclasspath branch November 23, 2023 09:09
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