Error: This manifest requires workspace inheritance, but `inherit_workspace` hasn't been called yet
nixpacks build .
gives me the error:
30 Replies
Project ID:
c1c73a5d-c6ca-40bd-a002-31561866c1b8
c1c73a5d-c6ca-40bd-a002-31561866c1b8
I also see this error message on the dashboard
Thanks! I have read through that document already, tried a few things, and can't figure it out
what values have you tried
NIXPACKS_CARGO_WORKSPACE
this env var says that it is the argument to --package
So I tried setting it to *
, and my directory namewhy not set it to your workspace name?
I think there is only a package name, not a workspace name, as far as I know
okay so set it to your package name
okay, same error
Manifest in cargo_toml - Rust
The top-level
Cargo.toml
structure. This is the main type in this library.I think inherit_workspace is depricated
okay so don't use it?
I think it is nixpacks saying that I need to use it
your app is using a workspace, no?
yes there is a workspace
just one?
yep, looks that way
okay don't use a workspace then, fwiw I don't really see a point of using a single workspace
well its a single workspace with about 10 members
Maybe nixpacks can support the --workspace argument?
I can't get rid of the workspace
GitHub
Support cargo workspaces by jzeuzs · Pull Request #402 · railwayapp...
What does this PR address?
Adds support for Cargo Workspaces
Fixes #256
Before submitting:
Make sure to follow GitHub's guide on creating PR.
Did you read through contribution guideline...
This PR seems related
GitHub
[bug] Tauri fails to build inside a workspace with workspace overri...
Describe the bug While building a tauri project inside a Cargo workspace using cargo build, with src-tauri/Cargo.toml containing workspace overrides (such as authors = { workspace = true }), the me...
This may be a workaround
Still haven't been able to figure this one out
I figured out how to recreate the error: https://github.com/railwayapp/nixpacks/pull/992/files
GitHub
This manifest requires workspace inheritance by gwbischof · Pull Re...
This PR shows how to recreate "Error: This manifest requires workspace inheritance, but inherit_workspace hasn't been called yet"
Made an issue here: https://github.com/railwayapp/nixpacks/issues/993
GitHub
Nixpacks Bug Report · Issue #993 · railwayapp/nixpacks
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 `inheri...
Thanks for the bug report! This seems to be an issue with how Nixpacks reads the Cargo.toml file