You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requiring users to have a .cargo/config.toml file with the following content:
[build]
target = "x86_64-unknown-linux-musl"
Is quite a bad developer experience.
A better approach would be to manage environment-specific configurations in a way that doesn't interfere with the local development process.
But maybe I misunderstood how this works and there's no need for this file if the user doesn't intend to make a prebuilt deployment from their local machine?
We only want to deploy from CI.
The text was updated successfully, but these errors were encountered:
If you only want this to kick in as part of CI, i'd recommend writing the .cargo/config.toml file as part of your Github Actions.
e.g.
- name: Write cargo config (forces a specific target)run: mkdir .cargo && printf "[build]\ntarget = \"x86_64-unknown-linux-musl\"\n" > .cargo/config.toml
It's not an easy one to workaround, as the configuration is Rust-specific. We'd have to have the ability to pass target info through the CLI, into the builder API, and then through to the cargo commands that are run. And of course, this would only apply to Rust builds at that point.
I get that this is not ideal, but it's well-documented in the README.
Requiring users to have a
.cargo/config.toml
file with the following content:Is quite a bad developer experience.
A better approach would be to manage environment-specific configurations in a way that doesn't interfere with the local development process.
But maybe I misunderstood how this works and there's no need for this file if the user doesn't intend to make a prebuilt deployment from their local machine?
We only want to deploy from CI.
The text was updated successfully, but these errors were encountered: