Merge pull request #1342 from sbt/wip/fix-build-loaders

Fix pattern match on buildLoaders.
This commit is contained in:
eugene yokota 2014-05-16 09:10:23 -04:00
commit 748ff345a4
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