Stream: API design

Topic: overwrite platform URL from command line?


view this post on Zulip Jasper Woudenberg (Jan 07 2025 at 22:12):

I've realized that being able to overwrite the platform URL from the command line would be a nice quality-of-life improvement for platform development.

I've an example in my Roc platform, and I'd like to build/run it against different platforms:

Quite possible I'm missing a security (or other) angle though!

view this post on Zulip Anton (Jan 08 2025 at 10:56):

In CI, during a release, I'd love to run the example against the compiled <hash>.tar.br bundle, as a smoke-test.

Yeah, I'd like this too, being able to use tar.br with a path, not only in a URL.
@Richard Feldman probably has the best understanding of the security implications

view this post on Zulip Richard Feldman (Jan 08 2025 at 12:44):

I think it's fine if it's a cli flag!

view this post on Zulip Richard Feldman (Jan 08 2025 at 12:45):

I'd suggest allowing substitutions, e.g. "any time you encounter a package with this path or URL, replace it with this other path or URL"

view this post on Zulip Richard Feldman (Jan 08 2025 at 12:45):

this way you can also use it to test out a bugfix of an indirect dependency

view this post on Zulip Luke Boswell (Jan 10 2025 at 00:35):

@Jasper Woudenberg can you make a tracking issue for this please?

view this post on Zulip Jasper Woudenberg (Jan 10 2025 at 07:24):

Sure thing, here it is: https://github.com/roc-lang/roc/issues/7494

view this post on Zulip Anton (Jan 10 2025 at 16:00):

overwrite the platform URL from the command line

This may be the first modification of the ingested Roc file, I wonder if that will create problems :thinking:


Last updated: Jul 06 2025 at 12:14 UTC