Skip to content

Commit a211b40

Browse files
Include compile classpath in unidoc module (#5858)
Solves generating unidoc in #5836, which otherwise fails because we don't properly traverse the `compileMvnDeps`/`compileModuleDeps` of the transitive module graph, which can result in some necessary parts of the classpath missing from the unidoc compile classpath --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent bb8f0d3 commit a211b40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/scalalib/src/mill/scalalib/UnidocModule.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ trait UnidocModule extends ScalaModule {
1818
def unidocVersion: T[Option[String]] = None
1919

2020
def unidocCompileClasspath: T[Seq[PathRef]] = Task {
21-
Seq(compile().classes) ++ Task.traverse(moduleDeps)(_.compileClasspath)().flatten
21+
Seq(
22+
compile().classes
23+
) ++ Task.traverse(transitiveModuleCompileModuleDeps)(_.compileClasspath)().flatten
2224
}
2325

2426
/**

0 commit comments

Comments
 (0)