Skip to content

shell.nix broken after migrating crown to use workspace root's package info #32552

Closed

Description

@mukilan

Describe the bug:
On NixOS, #32544 has broken mach. In shell.nix we build crown as a nix derivation but this is now not working because support/crown is no longer self contained and references the workspace Cargo.toml package attributes.

To Reproduce:
Run any mach command:

NOTE: Entering nix-shell etc/shell.nix
this derivation will be built:
  /nix/store/drqscckvvlwmb51f5s7p44pj2yf4p1wi-crown.drv
building '/nix/store/drqscckvvlwmb51f5s7p44pj2yf4p1wi-crown.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/4xn8kxqqn9kmbbjl2fj4qr50ij8mmxdf-crown
source root is crown
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
Executing cargoSetupPostPatchHook
Validating consistency between /build/crown/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
warning: `/build/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
warning: `/build/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
error: failed to parse manifest at `/build/crown/Cargo.toml`

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

Platform:
NixOS and other systems using nix-shell support.

Activity

  1. added
    C-untriaged
    on Jun 19, 2024
  2. added a commit that references this issue on Jun 20, 2024
    eeb30fe
  3. added a commit that references this issue on Jun 20, 2024
    cc1c31e
  4. added a commit that references this issue on Jun 21, 2024
    d896d41
  5. added a commit that references this issue on Jul 22, 2024
    4ee3eec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions