Skip to content

Commit

Permalink
Remove spurious warning from AssemblyModule.scala
Browse files Browse the repository at this point in the history
No longer relevant now that it's been broken out from `JavaModule.scala`
  • Loading branch information
lihaoyi authored Jan 16, 2025
1 parent 881c140 commit 7d73602
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scalalib/src/mill/scalalib/AssemblyModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ trait AssemblyModule extends mill.Module {
}

private[mill] def assembly0: Task[PathRef] = Task.Anon {
// detect potential inconsistencies due to `upstreamAssembly` deprecation after 0.11.7
if (
(upstreamAssembly.ctx.enclosing: @nowarn) != s"${classOf[AssemblyModule].getName}#upstreamAssembly"
) {
T.log.error(
s"${upstreamAssembly.ctx.enclosing: @nowarn} is overriding a deprecated target which is no longer used." +
s" Please make sure to override upstreamAssembly2 instead."
)
}

val prependScript = Option(prependShellScript()).filter(_ != "")
val upstream = upstreamAssembly2()
Expand Down

0 comments on commit 7d73602

Please sign in to comment.