Skip to content

LocalStore does not set up or sanitize its build environment correctly #10798

Open
@roberth

Description

Describe the bug

When running a NixOS VM test on darwin, it only works when going through the daemon.

See

Steps To Reproduce

  1. Get a shell on an aarch64-darwin machine
  2. sudo nix build -vvvvL 'github:NixOS/nixpkgs?rev=f17d1f9302326b1bddb79ae37014bc5c1a104998#tests.testers.nixosTest-example'
    • observe failure
  3. sudo env NIX_REMOTE=daemon nix build -vvvvL 'github:NixOS/nixpkgs?rev=f17d1f9302326b1bddb79ae37014bc5c1a104998#tests.testers.nixosTest-example'
    • observe success

Expected behavior

A clear and concise description of what you expected to happen.

nix-env --version output

nix-env --version                                                                                                                                                                                                                                                                                                ~
nix-env (Nix) 2.17.0

(yikes??, will try newer)

Additional context

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    bugderivation-buildThe process of building an individual derivation (see also sandbox label)idea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.macosNix on macOS, aka OS X, aka darwinsandboxHow we isolate build impurities and protect the host

    Type

    No type

    Projects

    • Status

      To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions