Stream: beginners

Topic: Git dependencies


view this post on Zulip frekw (May 03 2024 at 12:28):

Hi! I'm trying to understand how to import a platform from GitHub, since I was planning to play around with https://github.com/lukewilliamboswell/roc-serverless.

Doing

pf: "https://github.com/lukewilliamboswell/roc-serverless/archive/3f42b8477a2596055473f82e789ce77ef952b1ff.tar.gz"

doesn't seem to work because Roc expects a content hash (q3WCyUZHFTR69G8YECm9gIgAF3dGsmtbhk_WtJPZZro) but I'm not quite sure how to provide it, and came up empty on the site. :)

view this post on Zulip Anton (May 03 2024 at 13:49):

Hi @frekw,
That functionality is not something we support (yet?). If there is no release of the platform you need to clone it manually and use it like here.

view this post on Zulip frekw (May 03 2024 at 13:52):

Alright, thanks. Could be neat to support URL fragments to be able to provide a hash of any file!

Right now I'm trying to figure out how to hash it to provide a stable URL. Looks like Blake3 + base64-encoding. We'll see if I succeed. :D

view this post on Zulip Anton (May 03 2024 at 14:02):

Roc can help you with making archives like that.

view this post on Zulip frekw (May 03 2024 at 14:07):

Nice, thanks! Managed to do it but now the platform won't compile, probably because I'm running nix so it can't find the wasi-libc headers. Oh well I'll try another day :D

view this post on Zulip Anton (May 03 2024 at 14:24):

I'd happy to help you resolve that tomorrow :)


Last updated: Jul 05 2025 at 12:14 UTC