Permalink
Browse files

Fix for: Coursier not resilient to changing local ivy cache directory #…

  • Loading branch information...
Mocuto authored and alexarchambault committed Dec 6, 2017
1 parent 4ea6b96 commit da7fd6585fb0d282c9b3ba6f9e2f504e567c138b
Showing with 7 additions and 1 deletion.
  1. +7 −1 cache/src/main/scala/coursier/Cache.scala
@@ -1073,8 +1073,14 @@ object Cache {
}
private lazy val ivy2HomeUri = {
val path =
sys.props.get("coursier.ivy.home")
.orElse(sys.props.get("ivy.home"))
.getOrElse(sys.props("user.home") + "/.ivy2/")
// a bit touchy on Windows... - don't try to manually write down the URI with s"file://..."
val str = new File(sys.props("user.home") + "/.ivy2/").toURI.toString
val str = new File(path).toURI.toString
if (str.endsWith("/"))
str
else

0 comments on commit da7fd65

Please sign in to comment.