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

Migrate to sbt-http4s-org plugin #97

Merged
merged 15 commits into from
Mar 17, 2024
Merged

Conversation

danicheg
Copy link
Member

No description provided.

@danicheg danicheg marked this pull request as ready for review March 12, 2024 10:29
@danicheg
Copy link
Member Author

@armanbilge @valencik Sorry for that diff 🤷🏻

Comment on lines +22 to +23
// disable sbt-header plugin until we are not aligned on the license
ThisBuild / headerCheckAll := Nil
Copy link
Member Author

Choose a reason for hiding this comment

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

#98

build.sbt Outdated
@@ -1,13 +1,13 @@
import explicitdeps.ExplicitDepsPlugin.autoImport.moduleFilterRemoveValue

ThisBuild / tlBaseVersion := "0.0" // your current series x.y
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm willing to set it to 0.1. Any objections?

@danicheg danicheg requested a review from a team March 16, 2024 06:04
Copy link
Member

@valencik valencik left a comment

Choose a reason for hiding this comment

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

LGTM.
Confirmed scalafix/scalafmt setup are the same as http4s.
I noticed a couple things we could perhaps tidy up, but we could also do so in a followup PR to reduce noise here.

One thing we should do is add the commit where the scalafmt is first run to a .git-blame-ignore-revs file like Scala Steward does for us.

So a new .git-blame-ignore-revs file with the content:

# #97 Introduce sbt-http4s-org plugin
b92d1dbfcc29d3afcca0d2c143528f07b949dcd3

for {
paramsAndUnparsed <- GeneratorParams.fromStringCollectUnrecognized(params)
params = paramsAndUnparsed._1
unparsed = paramsAndUnparsed._2
// unparsed = paramsAndUnparsed._2
Copy link
Member

Choose a reason for hiding this comment

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

Should we just remove this if it's unused?

val serviceCall = s"serviceImpl.${method.name}"
val eval = if (method.isServerStreaming) s"$Stream.eval(mkCtx(m))" else "mkCtx(m)"
// val serviceCall = s"serviceImpl.${method.name}"
// val eval = if (method.isServerStreaming) s"$Stream.eval(mkCtx(m))" else "mkCtx(m)"
Copy link
Member

Choose a reason for hiding this comment

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

Similarly. Or perhaps we want to leave that kind of tidying for another PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

I presumed there could be many other refactorings, so I just put this under comments.

@danicheg
Copy link
Member Author

Maybe Arman would have something to add. But we already have a quorum of approvers, so merging this.

@danicheg danicheg merged commit 26d5a0a into http4s:main Mar 17, 2024
11 checks passed
@danicheg danicheg deleted the sbt-http4s-org branch March 17, 2024 06:02
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