Skip to content

slf4j depends on core jvm, not core js#644

Merged
danicheg merged 1 commit intotypelevel:mainfrom
martijnhoekstra:patch-1
May 4, 2022
Merged

slf4j depends on core jvm, not core js#644
danicheg merged 1 commit intotypelevel:mainfrom
martijnhoekstra:patch-1

Conversation

@martijnhoekstra
Copy link
Copy Markdown
Contributor

should close #643

@lorandszakacs
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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.


lazy val slf4j = project
.settings(commonSettings)
.dependsOn(core.js)
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

I agree, this can go into a 2.3.1.

@danicheg
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Yes, rebased

Copy link
Copy Markdown
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