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

Preserve TMPDIR on macOS in 'nix shell' #7492

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bouk
Copy link
Contributor

@bouk bouk commented Dec 21, 2022

See for context: #7491

Closes #7491

@bouk bouk changed the title Preserve TMPDIR on macOS in nix shell Preserve TMPDIR on macOS in 'nix shell' Dec 21, 2022
Copy link
Member

@thufschmitt thufschmitt left a comment

Choose a reason for hiding this comment

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

I think the fix is correct, but having to save tmpdir in a global variable like that is a bit ugly :/

@edolstra if I understand correctly, the problem with TMPDIR is only for the builders, right? Could we only unset it in the build loop then?

@roberth
Copy link
Member

roberth commented Jan 3, 2023

@edolstra if I understand correctly, the problem with TMPDIR is only for the builders, right? Could we only unset it in the build loop then?

That would be a nice simplification. Otherwise, we're going to need a test case for this.

@fricklerhandwerk fricklerhandwerk added bug macos Nix on macOS, aka OS X, aka darwin new-cli Relating to the "nix" command nix-shell nix-shell, nix develop, nix print-dev-env, etc labels Mar 3, 2023
@thufschmitt thufschmitt self-assigned this Mar 3, 2023
@Ericson2314
Copy link
Member

Triaged in the Nix team meeting:

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-03-03-nix-team-meeting-minutes-37/25998/1

@thufschmitt thufschmitt removed their assignment Feb 13, 2024
@fricklerhandwerk fricklerhandwerk added the idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. macos Nix on macOS, aka OS X, aka darwin new-cli Relating to the "nix" command nix-shell nix-shell, nix develop, nix print-dev-env, etc
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

nix unsets TMPDIR on macOS in subshell
6 participants