Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cannot add a resolver from within a script #491
This works good:
However, this fails:
For some reason,
Note: I need this to create a script with the
Having exactly the same issue.
The problem here is that the resolvers only get added when the code executes, but the
A workaround would be to put the resolver-mangling into a separate compilation block, using
import ammonite._, Resolvers._ val oss = Resolver.Http( "ambiata-oss", "https://ambiata-oss.s3-ap-southeast-2.amazonaws.com", IvyPattern, false ) interp.resolvers() = interp.resolvers() :+ oss @ import $ivy.`com.ambiata::mundane:1.2.1-20141230225616-50fc792` ...
Perhaps at some point we can add a magic