Fix pattern match on buildLoaders.

Fixes #1341
This commit is contained in:
Josh Suereth 2014-05-16 07:40:00 -04:00
parent d509ff83a1
commit e95feccfca
3 changed files with 15 additions and 1 deletions

View File

@ -270,7 +270,7 @@ object Load
loaders updatePluginManagement PluginManagement.extractOverrides(unit.plugins.fullClasspath)
def addResolvers(unit: sbt.BuildUnit, isRoot: Boolean, loaders: BuildLoader): BuildLoader =
unit.definitions.builds.flatMap(_.buildLoaders) match
unit.definitions.builds.flatMap(_.buildLoaders).toList match
{
case Nil => loaders
case x :: xs =>

View File

@ -0,0 +1,12 @@
import sbt._
import Keys._
object EmptyLoaderBuild extends Build {
override def buildLoaders = BuildLoader.transform(_.unit) :: Nil
lazy val root = (
project in file(".")
settings(
name := "foo"
)
)
}

View File

@ -0,0 +1,2 @@
# Just making sure the build compiles is enough of a test.
> name