R
Railway14mo 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
Percy14mo ago
Project ID: c1c73a5d-c6ca-40bd-a002-31561866c1b8
Korroni
KorroniOP14mo 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
KorroniOP14mo ago
Thanks! I have read through that document already, tried a few things, and can't figure it out
Brody
Brody14mo ago
what values have you tried
Korroni
KorroniOP14mo 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
Brody14mo ago
why not set it to your workspace name?
Korroni
KorroniOP14mo ago
I think there is only a package name, not a workspace name, as far as I know
Brody
Brody14mo ago
okay so set it to your package name
Korroni
KorroniOP14mo ago
okay, same error
Korroni
KorroniOP14mo ago
Korroni
KorroniOP14mo ago
I think inherit_workspace is depricated
Brody
Brody14mo ago
okay so don't use it?
Korroni
KorroniOP14mo ago
I think it is nixpacks saying that I need to use it
Brody
Brody14mo ago
your app is using a workspace, no?
Korroni
KorroniOP14mo ago
yes there is a workspace
Brody
Brody14mo ago
just one?
Korroni
KorroniOP14mo ago
yep, looks that way
Brody
Brody14mo ago
okay don't use a workspace then, fwiw I don't really see a point of using a single workspace
Korroni
KorroniOP14mo ago
well its a single workspace with about 10 members
Korroni
KorroniOP14mo ago
Maybe nixpacks can support the --workspace argument? I can't get rid of the workspace
Korroni
KorroniOP14mo 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
KorroniOP14mo ago
This PR seems related
Korroni
KorroniOP14mo 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
KorroniOP14mo ago
This may be a workaround Still haven't been able to figure this one out
Korroni
KorroniOP14mo 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
KorroniOP14mo 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
jr14mo ago
Thanks for the bug report! This seems to be an issue with how Nixpacks reads the Cargo.toml file
Want results from more Discord servers?
Add your server