Permalink
Browse files

sigh. i guess we need two locals.

  • Loading branch information...
1 parent 6be4e6d commit bb8e0e806f2aa0d53955ad8e3ee59b25ed712aa0 Robey Pointer committed Apr 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/scala/com/twitter/sbt/DefaultRepos.scala
View
7 src/main/scala/com/twitter/sbt/DefaultRepos.scala
@@ -77,7 +77,12 @@ object DefaultRepos extends Plugin with Environmentalist {
Seq("proxy-repo" at url)
} getOrElse {
resolvers ++ defaultResolvers
- }) ++ Seq("local" at ("file:" + localRepo.getAbsolutePath))
+ }) ++ Seq(
+ // the local repo has to be in here twice, because sbt won't push to a "file:"
+ // repo, but it won't read artifacts from a "Resolver.file" repo. (head -> desk)
+ "local-lookup" at ("file:" + localRepo.getAbsolutePath),
+ Resolver.file("local", localRepo)(Resolver.mavenStylePatterns)
+ )
},
// don't add any special resolvers.

0 comments on commit bb8e0e8

Please sign in to comment.