Skip to content

[Backport 2.15-maintenance] ci: Always run with sandbox, even on Darwin#8535

Merged
edolstra merged 4 commits into
NixOS:2.15-maintenancefrom
emilazy:backport-8240-to-2.15-maintenance
Jun 19, 2023
Merged

[Backport 2.15-maintenance] ci: Always run with sandbox, even on Darwin#8535
edolstra merged 4 commits into
NixOS:2.15-maintenancefrom
emilazy:backport-8240-to-2.15-maintenance

Conversation

@emilazy

@emilazy emilazy commented Jun 18, 2023

Copy link
Copy Markdown
Member

Despite the title of #8240, it fixes a regression caused by #8062 that broke running Nix inside sandboxed Nix builds on macOS. This leads to an obscure error activating Home Manager configurations due to the documentation generator, so I think backporting this is important (as 2.16 hasn't yet reached pkgs.nix and 2.15 will be used on the stable branches for even longer). I've verified that the Home Manager documentation builds correctly after applying this PR.

Fixes #8485.

infinisil and others added 4 commits June 18, 2023 04:03
And fix a test failure in the sandbox due to /home
existing on Darwin but not being accessible in the sandbox since it's a
symlink to /System/Volumes/Data/home, see
https://github.com/NixOS/nix/actions/runs/4205378453/jobs/7297384658#step:6:2127:

    C++ exception with description "error: getting status of /home/schnitzel/darmstadt/pommes: Operation not permitted" thrown in the test body.

On Linux this wasn't a problem because there /home doesn't exist in the sandbox

(cherry picked from commit be48907)
This does pathExists on various paths, which crashes on EPERM in the
macOS sandbox.

(cherry picked from commit b7cde90)
(cherry picked from commit a6c78ba)
@emilazy

emilazy commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

Thank you for the quick merge! May I ask what the ETA for cutting a maintenance release with this change is likely to be, as currently anyone using Home Manager on Darwin with the sandbox enabled gets a confusing error?

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

Labels

with-tests Issues related to testing. PRs with tests have some priority

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants