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

Remove unnecessary (?) compiler dependency #813

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

dvgica
Copy link
Contributor

@dvgica dvgica commented Dec 18, 2023

I ended up with protobuf-java 3.7.0 on my project classpath, and found that the culprit was avro4s-core -> scala3-compiler_3 -> compiler-interface. The problem is that protobuf-java 3.7.0 is very old and has a number of CVEs.

At any rate, I was confused as to why avro4s needed the scala3-compiler_3 dependency, so tried compiling without it. It compiles fine, and tests pass.

I assume it was added for a reason, at some point, but maybe is no longer necessary? Or am I missing something?

@sksamuel sksamuel merged commit 77e44c3 into sksamuel:master Dec 19, 2023
1 check passed
@sksamuel
Copy link
Owner

can't remember why it was there but I agree, doesn't seem to be needed.

@dvgica
Copy link
Contributor Author

dvgica commented Dec 19, 2023

Awesome, thanks. I wrote this PR in a bit of a rush so went back and found the commit where it was added. Seems like it was for scala.tools.reflect.ToolBox. But that code is long gone, even in the 4.x branch, and of course that compiler API doesn't exist in Scala 3. So am feeling quite confident it's safe.

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