Skip to content

eval-cache: Add derivation result as temproot#15616

Merged
xokdvium merged 1 commit into
NixOS:masterfrom
dramforever:more-temproots
Apr 10, 2026
Merged

eval-cache: Add derivation result as temproot#15616
xokdvium merged 1 commit into
NixOS:masterfrom
dramforever:more-temproots

Conversation

@dramforever
Copy link
Copy Markdown
Contributor

@dramforever dramforever commented Apr 2, 2026

Motivation

Three more missed temproots, hopefully fixed. You know the drill.

Closes the window where the derivation could be garbage collected after we checked isValidPath.

(This PR had three fixes at one time, but two other cases have been split off for later, since it is unclear that the approach was correct.)

Context

See also #15237 and #15469 for more temproots whack-a-mole.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Closes the window where the derivation could be garbage collected after
we checked isValidPath.
@github-actions github-actions Bot added the new-cli Relating to the "nix" command label Apr 2, 2026
Comment thread src/nix/build-remote/build-remote.cc Outdated
@dramforever dramforever marked this pull request as draft April 2, 2026 10:15
@github-actions github-actions Bot added the store Issues and pull requests concerning the Nix store label Apr 2, 2026
@dramforever
Copy link
Copy Markdown
Contributor Author

dramforever commented Apr 2, 2026

Marked as draft for now. I'll add a batched addTempRoots(std::span<StorePath>) or something like that for the later two cases.

(Edit: Deferred to a future PR)

Comment thread src/libstore/local-store.cc Outdated
@dramforever dramforever changed the title Fixes for even more missed temproots eval-cache: Add derivation result as temproot Apr 2, 2026
@dramforever dramforever marked this pull request as ready for review April 2, 2026 13:22
Comment thread src/libexpr/eval-cache.cc
@xokdvium xokdvium added this pull request to the merge queue Apr 10, 2026
Merged via the queue into NixOS:master with commit 14ffc17 Apr 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants