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

Add Scala Native suppresion of unused deps #183

Merged
merged 6 commits into from
Oct 23, 2022
Merged

Conversation

ybasket
Copy link
Contributor

@ybasket ybasket commented Oct 20, 2022

Similar to #129, just for Scala Native this time. Had to add the corresponding sbt plugin as sbt-typelevel doesn't bring (unlike it does for JS), hope this doesn't have any negative consequences.

Popped up when trying to build something with native support in http4s-fs2-data.

Similar to http4s#129, just for Scala Native this time. Had to add the corresponding sbt plugin as sbt-typelevel doesn't bring (unlike it does for JS), hope this doesn't have any negative consequences.
Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

This has been annoying me as well.

Historically Scala Native has provoked more concern than enthusiasm, so I've just been inlining a fix per-project.

https://github.com/http4s/http4s-scalatags/blob/38fced20ad98c3cd40cf27844b4036bcfa2cb2e6/build.sbt#L33

core/build.sbt Outdated Show resolved Hide resolved
Co-authored-by: Arman Bilge <[email protected]>
@ybasket
Copy link
Contributor Author

ybasket commented Oct 20, 2022

Thank you for the context and the fix. As for the concerns: I can also list all dependencies, but given that Scala Native gains traction in Typelevel & http4s, I would hope we can fix this for all.

build.sbt Outdated Show resolved Hide resolved
Co-authored-by: Arman Bilge <[email protected]>
@rossabaker
Copy link
Member

If that plugin doesn't cause a problem on the modules that will never support native, centralizing the fix here seems good.

@armanbilge armanbilge merged commit 58a7d64 into http4s:main Oct 23, 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.

3 participants