-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Move task override tracking from planning time to instantiation time #4181
Conversation
This reverts commit b930e1c.
292df4e
to
2440acd
Compare
87742c7
to
351832d
Compare
@@ -17,6 +18,8 @@ object BuildInfoTests extends TestSuite { | |||
def scalaVersion = scalaVersionString | |||
def buildInfoPackageName = "foo" | |||
def buildInfoMembers = Seq.empty[BuildInfo.Value] | |||
|
|||
def millDiscover = Discover[this.type] |
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.
Shouldn't this be a val
or lazy val
, here and in all the other places? The object is already at the end of the inheritance hierarchy, and the def
may cause wasteful re-initialisation of Discover
.
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.
Probably can be a lazy val
0804abc
to
82fe0ef
Compare
Since #4181 landed, we no longer need to track `Terminal.Labelled#segments` separately and can just use `Terminal.Labelled#task#ctx#segments#render`
Fixes #4176
Discover
mandatory, even in tests, so it always has useful dataimplicitMillDiscover
throughout the module hierarchy implicitly throughCtx
Discover#classInfo#declaredTasks#name
together with the linearization of the Scala trait hierarchy for each module, to decide whether or not a specific task is overridden or notoptionalOverride
that fails onmain
and passes on this PRAlso took the opportunity to break up
TestGraphs
,EvaluationTests
andResolveTests
a bit. Still pretty messy, but better than before