(Rust) Cargo Workspace app failing to build with "value from workspace hasn't been set"
My app is a Cargo workspace with three separate apps. My build command is
cargo build --release --bin server
which works fine when I clone the repo locally and run from the workspace root.
When I try to deploy on railway, the build vaguely fails with the message:
7 Replies
Please provide your project ID or reply with
N/A
. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.You might find these helpful:
- Failing to deploy a NestJs api in Railways UI from a Turbo monorepo
- Cannot deploy NodeJS API
- Monorepo deploy
⚠️ experimental feature
No project ID was provided. Closing thread.
fixed by setting env variable mentioned here https://nixpacks.com/docs/providers/rust#workspaces
it wasnt very clear how to find this solution, it may be helpful to add this link to the error message
tagging @neb :) for a possibly small enhancement we can do here
I have the same problem, I'm not sure what to set the env var to
I also see this error
Will take a look at this soon!