Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate input tasks in
inspect
command (#3102)
Before, `inspect` may show multiple instances of the same input task: ``` > mill inspect main.docJar ... main.docJar(ScalaModule.scala:332) The documentation jar, containing all the Javadoc/Scaladoc HTML files, for publishing to Maven Central Inputs: main.compileClasspath main.scalaVersion main.scalaOrganization main.scalaDocClasspath main.scalacPluginClasspath main.scalaDocOptions main.scalaVersion main.scalaVersion main.docResources main.docSources main.scalaVersion main.docResources main.docSources main.docSources ``` After, it's only showing each input once: ``` > mill inspect main.docJar ... main.docJar(ScalaModule.scala:332) The documentation jar, containing all the Javadoc/Scaladoc HTML files, for publishing to Maven Central Inputs: main.compileClasspath main.scalaVersion main.scalaOrganization main.scalaDocClasspath main.scalacPluginClasspath main.scalaDocOptions main.docResources main.docSources ``` Please note, `inspect` isn't incorrect when showing multiple entries of the same input. Due to the generic implementation, tasks can depend on the same input multiple times. But since `inspect` does provide information to the user, it' not beneficial to list all raw dependencies. Pull request: #3102
- Loading branch information