Permalink
Browse files

Handle the case of missing ~/.sbt/staging directory when asking for a…

… source project dependency.
  • Loading branch information...
1 parent e371451 commit d7f7a243e55319f5ad034720babe909e550168d7 @vigdorchik vigdorchik committed with Jun 1, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 main/Resolvers.scala
View
5 main/Resolvers.scala
@@ -146,5 +146,8 @@ object Resolvers
file
}
- def uniqueSubdirectoryFor(uri: URI, in: File) = new File(in, Hash.halfHashString(uri.normalize.toASCIIString))
+ def uniqueSubdirectoryFor(uri: URI, in: File) = {
+ in.mkdirs()
+ new File(in, Hash.halfHashString(uri.normalize.toASCIIString))
+ }
}

0 comments on commit d7f7a24

Please sign in to comment.