Skip to content

LocalStore: stop creating outdated profiles symlink#15277

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
puffnfresh:windows/remove-profiles-symlink
Feb 20, 2026
Merged

LocalStore: stop creating outdated profiles symlink#15277
Ericson2314 merged 1 commit intoNixOS:masterfrom
puffnfresh:windows/remove-profiles-symlink

Conversation

@puffnfresh
Copy link
Member

The GC already knows where profiles are via stateDir, so the profiles symlink in gcroots is unnecessary. Always create gcRootsDir unconditionally instead of gating on its existence.

Motivation

Symlinks pose some issues on Windows and I don't see a reason to get this one to work because it's outdated.

Context


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Feb 18, 2026
@Ericson2314
Copy link
Member

This looks good. Two things that would be nice to happen:

  1. Also remove the obsolete symlink in docker.nix for this
  2. Figure out when it became obselete, and put in the commit message.

@puffnfresh puffnfresh requested a review from edolstra as a code owner February 20, 2026 00:43
The gcroots/profiles link became outdated in
aeb810b when the GC code started
reading directly from /profiles, and gcroots/profiles was even
partially deleted in that commit.
@puffnfresh puffnfresh force-pushed the windows/remove-profiles-symlink branch from 22c6f62 to 9799023 Compare February 20, 2026 00:49
@puffnfresh
Copy link
Member Author

Found the commit, referenced it and rebased/squashed.

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 20, 2026
Merged via the queue into NixOS:master with commit 2470b79 Feb 20, 2026
14 checks passed
@drupol
Copy link
Contributor

drupol commented Mar 3, 2026

Perhaps this is fixing #13351 ?

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