nixpacks icon indicating copy to clipboard operation
nixpacks copied to clipboard

nixpacks cargo workspaces problem

Open gwbischof opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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 avatar Oct 10 '23 06:10 gwbischof

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

gwbischof avatar Oct 10 '23 06:10 gwbischof