Hello, I'm trying to build basic-cli to a .tar.br so I can use the new version of Stdin.line.
When I run
roc build main.roc --bundle .tar.br
I get
Compressing with Brotli at maximum quality level…
(Note: Brotli compression can take awhile! Using --bundle .tar.gz takes less time, but usually produces a significantly larger output file. Brotli is generally worth the up-front wait if this is a file people will be downloading!)
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Any ideas what's causing this and what I can do to get around it? I'm running it on an M1 mac.
Hmm, I am not sure, but what folder are you running this in? I think you have to be at least one folder away from it
So roc build --bundle .tar.br /platform/main.roc
Not sure that is the intended behaviour, just my experience
Hey, that worked! Thanks!
Probably use doing something naive with paths
btw, it's not required to create a bundle, you can also use a local folder, like in this example. You can use roc build my-app.roc --prebuilt-platform
to prevent rebuilding the platform every time.
That’s actually what I ended up doing because I was getting seg faults with the new Stdin.line in the bundled version that do not show up when I use the platform locally. Any idea what’s going on there?
Sounds like the same thing I was hitting here, I will investigate it in detail soon.
Last updated: Jul 06 2025 at 12:14 UTC