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

error inheriting version from workspace root manifest's workspace.package.version #311

Open
commandodev opened this issue Nov 6, 2023 · 1 comment

Comments

@commandodev
Copy link

commandodev commented Nov 6, 2023

I'm trying to us crate2nix to nixify windmill (https://github.com/windmill-labs/windmill).

I'm adding crate2nix in the backend subdirectory, which also has further sub directories with rust projects in them (e.g. windmill/backend/windmill-api)

I get:

++ crate2nix generate -f ./Cargo.toml -o Cargo-generated.nix -h /nix/store/32d3zrqyvz6w77k94hr3l4mn6qzhf5in-windmill-api-crate2nix/crate-hashes.json
Error: while retrieving metadata about ./Cargo.toml: `cargo metadata` exited with an error: error: failed to parse manifest at `/build/windmill-api/Cargo.toml`

Caused by:
  error inheriting `version` from workspace root manifest's `workspace.package.version`

Caused by:
  failed to find a workspace root
crate2nix failed.

I'll try and move the flake to the top level from backend and see if that works.

See also nix-community/naersk#318

@kolloch
Copy link
Collaborator

kolloch commented Nov 11, 2023

For reference: Crane has a workaround: ipetkov/crane#224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants