Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

emilazy
Copy link
Member

@emilazy emilazy commented Jun 18, 2023

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
Copy link
Member Author

emilazy commented Jun 19, 2023

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