nix-shell tmpdir issue with nixpkgs update script #1020

Open
opened 2025-10-22 15:36:59 +00:00 by mweinelt · 1 comment
Member

Describe the bug

Running update scripts in nixpkgs fails with

❯ nix-shell maintainers/scripts/update.nix --argstr package servo
fetching path input 'path:/nix/store/lp9z9cq9zvyfinqq3j3k75sllamk8j9n-source'

Going to be running update for following packages:
 - servo-0-unstable-2025-07-30

Press Enter key to continue...

Running update for:
Enqueuing group of 1 packages
 - servo-0-unstable-2025-07-30: UPDATING ...
 - servo-0-unstable-2025-07-30: ERROR

--- SHOWING ERROR LOG FOR servo-0-unstable-2025-07-30 ----------------------

error: creating directory '/tmp/nix-shell-441701-0/build-top-441701-1/nix-shell-441740-222600938': No such file or directory


--- SHOWING ERROR LOG FOR servo-0-unstable-2025-07-30 ----------------------
The update script for servo-0-unstable-2025-07-30 failed with exit code 1

Steps To Reproduce

  1. Clone nixpkgs
  2. Run nix-shell maintainers/scripts/update.nix --argstr package servo
  3. See error

Expected behavior

Not error out due to tmpdir changes.

nix --version output

nix (Lix, like Nix) 2.94.0-pre20251020-dev_5346b2b
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/hexa/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/hexa/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/hexa/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/hexa/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/kl9jl9x0ldrr68pz6dc8xwvcmmf1wvdx-lix-2.94.0-pre20251020-dev_5346b2b/share

Additional context

Likely caused by feab75bde0

## Describe the bug Running update scripts in nixpkgs fails with ``` ❯ nix-shell maintainers/scripts/update.nix --argstr package servo fetching path input 'path:/nix/store/lp9z9cq9zvyfinqq3j3k75sllamk8j9n-source' Going to be running update for following packages: - servo-0-unstable-2025-07-30 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - servo-0-unstable-2025-07-30: UPDATING ... - servo-0-unstable-2025-07-30: ERROR --- SHOWING ERROR LOG FOR servo-0-unstable-2025-07-30 ---------------------- error: creating directory '/tmp/nix-shell-441701-0/build-top-441701-1/nix-shell-441740-222600938': No such file or directory --- SHOWING ERROR LOG FOR servo-0-unstable-2025-07-30 ---------------------- The update script for servo-0-unstable-2025-07-30 failed with exit code 1 ``` ## Steps To Reproduce 1. Clone nixpkgs 2. Run `nix-shell maintainers/scripts/update.nix --argstr package servo` 3. See error ## Expected behavior Not error out due to tmpdir changes. ## `nix --version` output ``` nix (Lix, like Nix) 2.94.0-pre20251020-dev_5346b2b System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/hexa/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/hexa/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/hexa/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/hexa/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/kl9jl9x0ldrr68pz6dc8xwvcmmf1wvdx-lix-2.94.0-pre20251020-dev_5346b2b/share ``` ## Additional context Likely caused by feab75bde0577f9fdf3202eb217166f8cad1570b
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/4491 ("lix/nix-shell: cleanup of shell directories happens in Lix itself")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/4491", "number": 4491, "kind": "commit message"}], "cl_meta": {"4491": {"change_title": "lix/nix-shell: cleanup of shell directories happens in Lix itself"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/4491](https://gerrit.lix.systems/c/lix/+/4491) ("lix/nix-shell: cleanup of shell directories happens in Lix itself")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1020
No description provided.