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

slf4j depends on core jvm, not core js #644

Merged
merged 1 commit into from
May 4, 2022

Conversation

martijnhoekstra
Copy link
Contributor

should close #643

@lorandszakacs
Copy link
Member

I think this would require a 2.4 release? cc @danicheg if you can weigh in please, I got rusty with releases for the past year 😅

@martijnhoekstra
Copy link
Contributor Author

The issue causes log4cats-slf4j not to declare its dependency on log4cats-core, and to declare an unneeded dependency on log4cats-core_sjs1

The chance should result in only a different POM. That means in terms of binary compatibility, it's backwards and forwards compatible, and doesn't require a minor bump.

@@ -74,7 +74,7 @@ lazy val noop = crossProject(JSPlatform, JVMPlatform)

lazy val slf4j = project
.settings(commonSettings)
.dependsOn(core.js)
Copy link
Member

Choose a reason for hiding this comment

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

Actually, that was discussed when @armanbilge was adding it #592 (review).

Copy link
Member

Choose a reason for hiding this comment

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

Oops. This is 💯 my mistake and I really must not have been paying attention since your comment point it out 😳 I think I was trying to change coreJVM to core.jvm but I wrote core.js ... sorry everyone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In a Just world, either the build system or the compiler should have given you a fatal warning for this. This is a way too easy mistake to make.

Copy link
Member

Choose a reason for hiding this comment

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

What really baffles me is that the tests run and pass using the JS artifact ...

Copy link
Member

Choose a reason for hiding this comment

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

@armanbilge It's my fault too. I wasn't insistent and thought it's no matter what we'd use in that place :)

@armanbilge
Copy link
Member

I agree, this can go into a 2.3.1.

@danicheg
Copy link
Member

danicheg commented May 3, 2022

@martijnhoekstra Could you please rebase your branch? I've fixed the error that caused the failing CI in this PR.

@martijnhoekstra
Copy link
Contributor Author

Yes, rebased

Copy link
Member

@danicheg danicheg left a comment

Choose a reason for hiding this comment

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

Thank you so much for fixing this!

@danicheg danicheg merged commit 46f20a8 into typelevel:main May 4, 2022
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.

log4cats-slf4j depends on log4cats-core_sjs1
4 participants