railwayapp / nixpacks

App source + Nix packages + Docker = Image
https://nixpacks.com
MIT License
2.36k stars 226 forks source link

nixpacks cargo workspaces problem #993

Open gwbischof opened 9 months ago

gwbischof commented 9 months ago

Is there an existing issue for this?

Describe the bug

nixpack build .

gives the following error: Error: This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet

when using:

[dependencies]
http = { workspace = true }

like described in this doc: https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table

To reproduce

Use the code from this PR: https://github.com/railwayapp/nixpacks/pull/992

cd nixpacks/examples/rust-cargo-workspaces
nixpacks build .

Expected behavior

build successful

Environment

NAME="Linux Mint" VERSION="21.2 (Victoria)"

nixpacks --version
nixpacks 1.17.0
gwbischof commented 9 months ago

I see that nixpacks rust is pinned to 1.60, I think Rust > 1.64 might fix this. https://github.com/rust-lang/rust/blob/master/RELEASES.md#cargo-8