From aee9c832ea98c73551b29bedab9863a1f8bf8b7a Mon Sep 17 00:00:00 2001 From: lea Date: Fri, 19 Jul 2024 23:33:09 -0700 Subject: [PATCH] fix(update): crystal (#1571) (#1590) (cherry picked from commit 7e6c8e50a4d373abbf2be708ab9f5b822dcb527a) # Conflicts: # anda/langs/crystal/crystal/update.rhai Co-authored-by: madomado --- anda/langs/crystal/crystal/update.rhai | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/anda/langs/crystal/crystal/update.rhai b/anda/langs/crystal/crystal/update.rhai index 4d611f9d99..b2159a6775 100644 --- a/anda/langs/crystal/crystal/update.rhai +++ b/anda/langs/crystal/crystal/update.rhai @@ -1 +1,9 @@ -rpm.version(gh("crystal-lang/crystal")); +let v = gh("crystal-lang/crystal"); +let url = `crystal-${v}-1-linux-x86_64-bundled.tar.gz`; + +if get(`https://github.com/crystal-lang/crystal/releases/expanded_assets/${v}`).contains(url) { + rpm.version(v); +} else { + print(`crystal: ${v} (waiting for bundle)`); + terminate(); +}