Stream: beginners

Topic: Possible debug-68797921 issue on basic-cli


view this post on Zulip Iain Schmitt (Mar 06 2026 at 16:55):

I don't _think_ this issue is anywhere else but there may be an issue with hash validation for the basic-cli on the current nightly. My appologies if I made some incredibly basic mistake but the nightly compiler looks fine - was going through the tutorial this morning and noticed this

$   cat main.roc
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]

main! : List Arg => Result {} _
main! = |_args|
    Stdout.line!("Hello, World!")
iain@san-francisco: /Users/iain/code/scratch/roc

➜   roc main.roc
-- DOWNLOAD FAILED -------------------------------

Failed to download from https://github.com/roc-lang/basic-cli/releases/download/0.20.0/X73hGh05nNTkDHU06FHC0YfFaQB1pimX7gncRcao5mU.tar.br

Error: InvalidHash

iain@san-francisco: /Users/iain/code/scratch/roc
➜   roca4 main.roc
Hello, World!
iain@san-francisco: /Users/iain/code/roc/zig-out git:(main)
➜   roc --version
Roc compiler version debug-68797921
iain@san-francisco: /Users/iain/code/roc/zig-out git:(main)
➜   roca4 --version
roc nightly pre-release, built from commit d73ea109cc2 on Tue Sep  9 10:23:53 UTC 2025

view this post on Zulip Anton (Mar 06 2026 at 16:58):

Hi @Iain Schmitt,
For basic-cli 0.20.0 you need to use Roc alpha4.
For latest nightly roc, the basic-cli port is still in the works, you can find it here and build from source if you like.
The hash check is different with the newest Roc, I'll make an issue for a nicer error message for this case :)

view this post on Zulip Anton (Mar 06 2026 at 17:00):

Here is the tutorial for the new compiler by the way: https://github.com/roc-lang/roc/blob/main/docs/mini-tutorial-new-compiler.md

view this post on Zulip Anton (Mar 06 2026 at 17:02):

#9242


Last updated: Mar 20 2026 at 12:28 UTC