mirror of https://github.com/sbt/sbt.git
fix collision with name 'state' in 'console-project'
This commit is contained in:
parent
e6cc26c10f
commit
0b4d8fb505
|
|
@ -31,7 +31,7 @@ object Console
|
|||
def sbt(state: State, extra: String)(implicit log: Logger)
|
||||
{
|
||||
val extracted = Project extract state
|
||||
val bindings = ("state" -> state) :: ("extracted" -> extracted ) :: Nil
|
||||
val bindings = ("currentState" -> state) :: ("extracted" -> extracted ) :: Nil
|
||||
val unit = extracted.currentUnit
|
||||
val compiler = Compiler.compilers(state.configuration, log).scalac
|
||||
val imports = Load.getImports(unit.unit) ++ Load.importAll(bindings.map(_._1))
|
||||
|
|
|
|||
Loading…
Reference in New Issue