Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixpacks cargo workspaces problem #993

Open
1 task done
gwbischof opened this issue Oct 10, 2023 · 1 comment
Open
1 task done

nixpacks cargo workspaces problem #993

gwbischof opened this issue Oct 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gwbischof
Copy link

gwbischof commented Oct 10, 2023

Is there an existing issue for this?

  • 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:
#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 gwbischof added the bug Something isn't working label Oct 10, 2023
@gwbischof gwbischof changed the title Nixpacks Bug Report nixpacks workspaces problem Oct 10, 2023
@gwbischof gwbischof changed the title nixpacks workspaces problem nixpacks cargo workspaces problem Oct 10, 2023
@gwbischof
Copy link
Author

gwbischof commented Oct 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant