From 20cc20c0012750c014d3de38b8e393e3ac5b7f3d Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:07:21 +0200 Subject: [PATCH 1/2] build.roc update basic-cli 0.20 --- build.roc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.roc b/build.roc index 297cb85..ab24657 100644 --- a/build.roc +++ b/build.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.20.0/X73hGh05nNTkDHU06FHC0YfFaQB1pimX7gncRcao5mU.tar.br", weaver: "https://github.com/smores56/weaver/releases/download/0.6.0/4GmRnyE7EFjzv6dDpebJoWWwXV285OMt4ntHIc6qvmY.tar.br", } From 551871f05866af2488d2792d314132ea65729560 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:13:44 +0200 Subject: [PATCH 2/2] update other script too --- ci/check_all_exposed_funs_tested.roc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/check_all_exposed_funs_tested.roc b/ci/check_all_exposed_funs_tested.roc index 16034e4..412c524 100644 --- a/ci/check_all_exposed_funs_tested.roc +++ b/ci/check_all_exposed_funs_tested.roc @@ -1,4 +1,4 @@ -app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.19.0/Hj-J_zxz7V9YurCSTFcFdu6cQJie4guzsPMUi5kBYUk.tar.br" } +app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.20.0/X73hGh05nNTkDHU06FHC0YfFaQB1pimX7gncRcao5mU.tar.br" } import cli.Stdout import cli.Arg exposing [Arg] @@ -20,7 +20,7 @@ err_s = |err_msg| Err(StrErr(err_msg)) main! : List Arg => Result {} _ main! = |_args| # Check if ripgrep is installed - _ = Cmd.exec!("rg", ["--version"]) ? |err| RipgrepNotInstalled(err) + _ = Cmd.exec!("rg", ["--version"])? cwd = Env.cwd!({}) ? |err| FailedToGetCwd(err) Stdout.line!("Current working directory: ${Path.display(cwd)}")? @@ -124,12 +124,12 @@ is_function_unused! = |module_name, function_name| |> Cmd.arg(function_pattern) |> Cmd.arg(search_dir) - status_res = Cmd.status!(cmd) + ripgrep_res = Cmd.exec_cmd!(cmd) # ripgrep returns status 0 if matches were found, 1 if no matches - when status_res is - Ok(0) -> Ok(Bool.false) # Function is used (not unused) - _ -> Ok(Bool.true) + when ripgrep_res is + Ok(_) -> Ok(Bool.false) # Function is used (not unused) + Err(_) -> Ok(Bool.true) )? unused_in_dir