R
Railway9mo ago
Korroni

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

nixpacks build . gives me the error:
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
30 Replies
Percy
Percy9mo ago
Project ID: c1c73a5d-c6ca-40bd-a002-31561866c1b8
Korroni
Korroni9mo ago
c1c73a5d-c6ca-40bd-a002-31561866c1b8
[Region: us-west1]

==============

Using Nixpacks

==============


context: 1b194834ff932661ced22f28649590f1

Nixpacks build failed



Error: value from workspace hasn't been set
[Region: us-west1]

==============

Using Nixpacks

==============


context: 1b194834ff932661ced22f28649590f1

Nixpacks build failed



Error: value from workspace hasn't been set
I also see this error message on the dashboard
Korroni
Korroni9mo ago
Thanks! I have read through that document already, tried a few things, and can't figure it out
Brody
Brody9mo ago
what values have you tried
Korroni
Korroni9mo ago
NIXPACKS_CARGO_WORKSPACE this env var says that it is the argument to --package So I tried setting it to * , and my directory name
Brody
Brody9mo ago
why not set it to your workspace name?
Korroni
Korroni9mo ago
I think there is only a package name, not a workspace name, as far as I know
Brody
Brody9mo ago
okay so set it to your package name
Korroni
Korroni9mo ago
okay, same error
Korroni
Korroni9mo ago
Korroni
Korroni9mo ago
I think inherit_workspace is depricated
Brody
Brody9mo ago
okay so don't use it?
Korroni
Korroni9mo ago
I think it is nixpacks saying that I need to use it
Brody
Brody9mo ago
your app is using a workspace, no?
Korroni
Korroni9mo ago
yes there is a workspace
Brody
Brody9mo ago
just one?
Korroni
Korroni9mo ago
yep, looks that way
Brody
Brody9mo ago
okay don't use a workspace then, fwiw I don't really see a point of using a single workspace
Korroni
Korroni9mo ago
well its a single workspace with about 10 members
Korroni
Korroni9mo ago
Maybe nixpacks can support the --workspace argument? I can't get rid of the workspace
Korroni
Korroni9mo ago
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...
Korroni
Korroni9mo ago
This PR seems related
Korroni
Korroni9mo ago
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...
Korroni
Korroni9mo ago
This may be a workaround Still haven't been able to figure this one out
Korroni
Korroni9mo ago
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"
Korroni
Korroni9mo ago
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...
jr
jr9mo ago
Thanks for the bug report! This seems to be an issue with how Nixpacks reads the Cargo.toml file