Skip to content

libstore: Plug thread safety issues in recursive-nix#15679

Open
xokdvium wants to merge 1 commit intomasterfrom
recursive-nix-thread-safety
Open

libstore: Plug thread safety issues in recursive-nix#15679
xokdvium wants to merge 1 commit intomasterfrom
recursive-nix-thread-safety

Conversation

@xokdvium
Copy link
Copy Markdown
Contributor

Motivation

Access to addedPaths/addedDrvOutputs was completely unsynchronised.

Context

Haven't yet been able to reproduce issues with this with thread sanitizers. The implementations seems kinda correct, but not 100% sure.


Add 👍 to pull requests you find important.

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

@xokdvium xokdvium requested a review from Ericson2314 as a code owner April 13, 2026 19:15
@github-actions github-actions Bot added the store Issues and pull requests concerning the Nix store label Apr 13, 2026

std::pair<std::filesystem::path, std::filesystem::path> addDependencyPrep(const StorePath & path)
{
DerivationBuilderImpl::addDependencyImpl(path);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just adding to addedPaths, which is now done by addDependency itself for synchronisation purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants