(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:
==============
Using Nixpacks
==============
context: 873b5b7db18a8b314d40e3e9ec94409f
Nixpacks build failed

Error: value from workspace hasn't been set
==============
Using Nixpacks
==============
context: 873b5b7db18a8b314d40e3e9ec94409f
Nixpacks build failed

Error: value from workspace hasn't been set
7 Replies
Percy
Percy2y ago
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.
Percy
Percy2y ago
Percy
Percy2y ago
No project ID was provided. Closing thread.
hexcowboy
hexcowboyOP2y ago
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
angelo
angelo2y ago
tagging @neb :) for a possibly small enhancement we can do here
Korroni
Korroni14mo ago
I have the same problem, I'm not sure what to set the env var to
Error: This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet
Error: This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet
I also see this error
jr
jr14mo ago
Will take a look at this soon!
Want results from more Discord servers?
Add your server