Skip to content

Commit 7140696

Browse files
authored
Merge branch 'master' into simplify-util-url
2 parents 77750fd + b124512 commit 7140696

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- uses: cachix/install-nix-action@v31
17+
with:
18+
install_url: "https://releases.nixos.org/nix/nix-2.29.1/install"
1719
- run: nix --experimental-features 'nix-command flakes' flake show --all-systems --json
1820

1921
tests:
@@ -36,6 +38,7 @@ jobs:
3638
fetch-depth: 0
3739
- uses: cachix/install-nix-action@v31
3840
with:
41+
install_url: "https://releases.nixos.org/nix/nix-2.29.1/install"
3942
# The sandbox would otherwise be disabled by default on Darwin
4043
extra_nix_config: |
4144
sandbox = true

doc/manual/source/package-management/garbage-collector-roots.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ ln -s /nix/store/d718ef...-foo /nix/var/nix/gcroots/bar
1212
That is, after this command, the garbage collector will not remove
1313
`/nix/store/d718ef...-foo` or any of its dependencies.
1414

15-
Subdirectories of `prefix/nix/var/nix/gcroots` are also searched for
16-
symlinks. Symlinks to non-store paths are followed and searched for
17-
roots, but symlinks to non-store paths *inside* the paths reached in
18-
that way are not followed to prevent infinite recursion.
15+
Subdirectories of `prefix/nix/var/nix/gcroots` are searched
16+
recursively. Symlinks to store paths count as roots. Symlinks to
17+
non-store paths are ignored, unless the non-store path is itself a
18+
symlink to a store path.

src/libstore/unix/user-lock.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool useBuildUsers()
197197
#ifdef __linux__
198198
static bool b = (settings.buildUsersGroup != "" || settings.autoAllocateUids) && isRootUser();
199199
return b;
200-
#elif defined(__APPLE__) && defined(__FreeBSD__)
200+
#elif defined(__APPLE__) || defined(__FreeBSD__)
201201
static bool b = settings.buildUsersGroup != "" && isRootUser();
202202
return b;
203203
#else

0 commit comments

Comments
 (0)