From 6dd2c68ade6f562f7f0e51153926475d4271cfb4 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 27 Jul 2022 10:56:35 +0200 Subject: [PATCH] Use non-changing URL for cs.sh script Should make it easier to be sure newer versions are picked when needed --- src/Convert.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Convert.scala b/src/Convert.scala index 66fcf9d..7b1abfd 100644 --- a/src/Convert.scala +++ b/src/Convert.scala @@ -75,7 +75,7 @@ object Convert extends CaseApp[ConvertOptions] { } } - def csShUrl = "https://github.com/coursier/ci-scripts/raw/master/cs.sh" + def csShUrl = "https://github.com/coursier/ci-scripts/raw/51931bc75613eb722fb752b204241c54ac506a24/cs.sh" def run(options: ConvertOptions, args: RemainingArgs): Unit = { @@ -243,7 +243,7 @@ object Convert extends CaseApp[ConvertOptions] { os.copy(p, dest / rel, copyAttributes = true) } - val csSh = FileCache().file(Artifact(csShUrl).withChanging(true)).run.unsafeRun()(FileCache().ec) match { + val csSh = FileCache().file(Artifact(csShUrl)).run.unsafeRun()(FileCache().ec) match { case Left(e) => throw new Exception(e) case Right(f) => os.Path(f, os.pwd) }