Open betehess opened 6 years ago
This is kind of the same issue as https://github.com/lihaoyi/Ammonite/issues/433 (whose fix was lost at some point, it seems).
I guess we can get rid of the ivyCache
of Ammonite altogether… It's not that useful since the switch to coursier, and it can have unintended side effects, like this issue.
I am trying to get an Ammonite script to depend on the latest version of an internal dependency.
I have something that looks like that:
It looks like Ammonite is not able to detect that a new version was released. We currently ask the users of the script to either:
rm -Rf ~/.ammonite/cache/
VERSION="x.y.z"
But it defeats the purpose of having users not to worry about knowing what the latest version is.
The
coursier.ttl
trick was suggested by @alexarchambault and he pointed me to https://github.com/coursier/coursier/blob/a2ef75abcbb2cbdbc421f22c55a4a2ab960687e2/cache/jvm/src/main/scala/coursier/Cache.scala#L1137 but it didn't fix the problem.