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:
zig-out/platform
).<hash>.tar.br
bundle, as a smoke-test.Quite possible I'm missing a security (or other) angle though!
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
I think it's fine if it's a cli flag!
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"
this way you can also use it to test out a bugfix of an indirect dependency
@Jasper Woudenberg can you make a tracking issue for this please?
Sure thing, here it is: https://github.com/roc-lang/roc/issues/7494
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