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

A potential regression in v0.7.0: tlPrePrBotHook produces an empty diff but scalafix brings some changes #702

Open
danicheg opened this issue Apr 21, 2024 · 3 comments

Comments

@danicheg
Copy link
Member

I'm not sure if this is a bug or some changes in behaviour brought in v0.7.0. So I apologise in advance!
Details are here http4s/sbt-http4s-org#260 (comment).

@armanbilge
Copy link
Member

Hm, are you sure its a regression? Did it used to work differently?

tlPrePrBotHook currently doesn't run Scalafix. I think I decided against this because running Scalafix requires compiling the entire repository and I was afraid to ask Steward to be doing so much work.

val botHook = List("githubWorkflowGenerate") ++
List("+headerCreateAll").filter(_ => header) ++
List("+scalafmtAll", "scalafmtSbt").filter(_ => scalafmt)

@danicheg
Copy link
Member Author

Hm, are you sure its a regression? Did it used to work differently?

In the beginning, it was kind of 50% certainty, for now, it's like 10% 😆
I was always thinking that prePR runs everything from formatting code/headers to Scalafix. If not, how do we set up running Scalafix in CI with sbt-typelevel then?

@armanbilge
Copy link
Member

I was always thinking that prePR runs everything from formatting code/headers to Scalafix.

Yes, that's correct. This one is for users to run on their local machine.

But tlPrePrBotHook is a "lighter weight" version because I was afraid to burden the Steward with too much work to compile every repository for every sbt-typelevel update. But I just remembered that Steward already runs some scalafix rules sometimes. If those are working in the same way, then maybe it not as much of a problem as I feared.

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

No branches or pull requests

2 participants