-
Notifications
You must be signed in to change notification settings - Fork 507
Support Mill 1 #3726
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
Support Mill 1 #3726
Changes from 1 commit
a8c1294
7516ba3
23092e1
e49384b
79dd490
eff8226
0f5ee01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,11 +90,18 @@ final class MillAlg[F[_]](defaultResolvers: List[Resolver])(implicit | |
| override protected val scalafixIssue: Option[String] = | ||
| Some("https://github.com/scala-steward-org/scala-steward/issues/2838") | ||
|
|
||
| private def getMillVersion(buildRootDir: File): F[Option[Version]] = | ||
| List( | ||
| buildRootDir / s".$millVersionName", | ||
| buildRootDir / ".config" / millVersionName | ||
| ).collectFirstSomeM(fileAlg.readFile).map(_.flatMap(parser.parseMillVersion)) | ||
| private def getMillVersion(buildRootDir: File): F[Option[Version]] = { | ||
| val fromConfigFile = | ||
| List( | ||
| buildRootDir / s".$millVersionName", | ||
| buildRootDir / ".config" / millVersionName | ||
| ).collectFirstSomeM(fileAlg.readFile).map(_.flatMap(parser.parseMillVersion)) | ||
| val fromBuildFile = List(buildRootDir / "build.mill", buildRootDir / "build.mill.scala") | ||
|
||
| .collectFirstSomeM(fileAlg.readFile) | ||
| .map(_.flatMap(parser.parseBuildFileMillVersion)) | ||
|
|
||
| fromBuildFile.orElse(fromConfigFile) | ||
| } | ||
|
|
||
| private def getMillPluginDeps( | ||
| millVersion: Version, | ||
|
|
||
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.
MillAlgTest needs fix: