-
Notifications
You must be signed in to change notification settings - Fork 63
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
Set up Scalafix and bump sbt-http4s-org
version
#694
Conversation
Quick, perhaps wrong, analysis: I think there was some subtlety between how Legacy Blaze had organized imports and how http4s has been doing it. That might be the cause of this. |
I feel that we should disable scalafix for old modules in blaze, but for some dumb reasons, I'm stuck on this. The things like
just does not work. |
So, this is kinda funny.
But
actually works. |
I'm beat almost. Now this looks like a job for Build Ninja. /cc @armanbilge 🙏🏻 |
Hmm, many sbt commands ignore Anyway, the same way we have:
one solution is to add a |
Oh, an even easier solution may be |
I've also tried this, this breaks the loading of sbt entirely with some plugins resolving error. |
Huh, are you sure? That maybe just transient error. |
The idea is to disable Scalafix utterly for old modules because it brings so many changes that we do not that want now, I suppose. |
|
|
Edit again: huh, maybe it does work 😂 |
D'oh 😒 |
Is this just about reorganizing imports in Legacy Blaze the way they're done in the rest of the org? If that's the problem, then I'm in favor of just reorganizing the imports. We don't need two sets of rules. |
Unfortunately, reorganizing imports is a pick of an iceberg. A huge diff, as well as unresolved conflicts (that need to be fixed with bare hands), beats us too. |
Where do the conflicts arise? On the merge to main? For that, I was thinking we were probably just going to have to run scalafmt on main, and resolve conflicts as "keep ours". |
I meant that Scalafix run fails for some code. So it'd require us to put "scalafix:ok" properly through the codebase. |
I see them now. In hindsight, should have tackled those before legacy blaze got tagged 0.23. |
The classic of the Computers. At local works, at CI not. (sorry for disrupting, just can't keep the pain) |
This branch is up to date ._. And the previous fix wasn't working at CI too. |
Also, the error message looks pretty weird
it seems like the config defined for Test isn't working. |
Http4sGeneralLinters | ||
Http4sUseLiteralsSyntax | ||
LeakingImplicitClassVal | ||
OrganizeImports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danicheg the test config also enforces organize imports, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Then my hypothesis about Test config is wrong. But why all is good at local 🤯
Although this is green at CI, I'm feeling some doubts about the correctness of Scalafix working. Nevertheless, I'm happy to win this game. |
And as always, thank you @armanbilge. It's cool to have you always near. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooray. Nice work.
No description provided.