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

Fix sandbox fallback settings #3144

Merged
merged 2 commits into from Nov 26, 2019
Merged

Conversation

matthewbauer
Copy link
Member

The tmpDirInSandbox is different when in sandboxed vs. non-sandboxed.
Since we don’t know ahead of time here whether sandboxing is enabled,
we need to reset all of the env vars we’ve set previously. This fixes
the issue encountered in NixOS/nixpkgs#70856.

The tmpDirInSandbox is different when in sandboxed vs. non-sandboxed.
Since we don’t know ahead of time here whether sandboxing is enabled,
we need to reset all of the env vars we’ve set previously. This fixes
the issue encountered in NixOS/nixpkgs#70856.
Copy link
Member

@zimbatm zimbatm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet and simple.

It would be nice to move away entirely from using the system tmpdir. It's causing a lot of issue such as non-reproducible builds, build concurrency issues, disk space issues when /tmp is mounted with tmpfs.

@siscia
Copy link

siscia commented Oct 17, 2019

Should this be merged?

@siscia
Copy link

siscia commented Nov 1, 2019

ping

@matthewbauer
Copy link
Member Author

/cc @edolstra

@edolstra edolstra merged commit 7c8d7c1 into NixOS:master Nov 26, 2019
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.

None yet

4 participants