Skip to content

libstore: pass stateDir to acquireUserLock instead of using global#15217

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
amaanq:acquire-user-lock-state-dir
Feb 13, 2026
Merged

libstore: pass stateDir to acquireUserLock instead of using global#15217
Ericson2314 merged 1 commit intoNixOS:masterfrom
amaanq:acquire-user-lock-state-dir

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 13, 2026

Motivation

This makes acquireUserLock take an explicit stateDir parameter,
since it was previously reaching into the global settings object
just to read nixStateDir for constructing the userpool paths.


Add 👍 to pull requests you find important.

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

@amaanq amaanq requested a review from Ericson2314 as a code owner February 13, 2026 00:11
@amaanq amaanq force-pushed the acquire-user-lock-state-dir branch from e63164b to dd6672a Compare February 13, 2026 00:12
@amaanq amaanq changed the title acquireUserLock: take stateDir parameter instead of using global settings libstore: pass stateDir to acquireUserLock instead of using global Feb 13, 2026
@amaanq amaanq changed the title libstore: pass stateDir to acquireUserLock instead of using global libstore: pass stateDir to acquireUserLock instead of using global Feb 13, 2026
@amaanq amaanq force-pushed the acquire-user-lock-state-dir branch 2 times, most recently from 031cc6e to 8aeb096 Compare February 13, 2026 00:16
@Ericson2314
Copy link
Member

In particular, we might switch this to using the per-local-store state dir rather than global one at some point.

This makes `acquireUserLock` take an explicit stateDir parameter,
since it was previously reaching into the global settings object
just to read `nixStateDir` for constructing the userpool paths.

Progress on NixOS#5638
auto-merge was automatically disabled February 13, 2026 00:43

Head branch was pushed to by a user without write access

@amaanq amaanq force-pushed the acquire-user-lock-state-dir branch from 8aeb096 to cecbe9f Compare February 13, 2026 00:43
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into NixOS:master with commit a06ab48 Feb 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants