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: remove usage of XDG_RUNTIME_DIR for TMP #10883

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

tomberek
Copy link
Contributor

@tomberek tomberek commented Jun 10, 2024

Motivation

Context

Removes usage of XDG_RUNTIME_DIR

  • check if this impacts any other expected behavior

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@tomberek tomberek requested a review from edolstra as a code owner June 10, 2024 12:33
@tomberek tomberek force-pushed the tomberek.remove_xdg_tmp branch from 6bceaac to 1363f51 Compare June 10, 2024 12:39
@roberth roberth enabled auto-merge June 10, 2024 12:40
@roberth roberth merged commit e943ee3 into NixOS:master Jun 10, 2024
9 checks passed
@tomberek tomberek deleted the tomberek.remove_xdg_tmp branch June 10, 2024 13:35
@roberth roberth added backport 2.18-maintenance Automatically creates a PR against the branch backport 2.23-maintenance Automatically creates a PR against the branch labels Jun 10, 2024

This comment was marked as resolved.

1 similar comment
Copy link

Backport failed for 2.18-maintenance, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.18-maintenance
git worktree add -d .worktree/backport-10883-to-2.18-maintenance origin/2.18-maintenance
cd .worktree/backport-10883-to-2.18-maintenance
git switch --create backport-10883-to-2.18-maintenance
git cherry-pick -x 1363f51bcb24ab9948b7b5093490a009947f7453

Copy link

Successfully created backport PR for 2.23-maintenance:

This comment was marked as off-topic.

@roberth roberth added backport 2.18-maintenance Automatically creates a PR against the branch and removed backport 2.18-maintenance Automatically creates a PR against the branch labels Jun 10, 2024
Copy link

Successfully created backport PR for 2.18-maintenance:

This comment was marked as duplicate.

@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/2024-06-10-nix-team-meeting-minutes-151/46956/1

tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
This is a squash of upstream PRs NixOS#10303, NixOS#10312 and NixOS#10883.

fix: Treat empty TMPDIR as unset

Fixes an instance of

    nix: src/libutil/util.cc:139: nix::Path nix::canonPath(PathView, bool): Assertion `path != ""' failed.

... which I've been getting in one of my shells for some reason.
I have yet to find out why TMPDIR was empty, but it's no reason for
Nix to break.

(cherry picked from commit c3fb2aa)

fix: Treat empty XDG_RUNTIME_DIR as unset

See preceding commit. Not observed in the wild, but is sensible
and consistent with TMPDIR behavior.

(cherry picked from commit b9e7f5a)

local-derivation-goal.cc: Reuse defaultTempDir()

(cherry picked from commit fd31945)

fix: remove usage of XDG_RUNTIME_DIR for TMP

(cherry picked from commit 1363f51)

tests/functional: Add count()

(cherry picked from commit 6221770)

Remove uncalled for message

(cherry picked from commit b1fe388)

Add build-dir setting

(cherry picked from commit 8b16cce)
Change-Id: Ic7b75ff0b6a3b19e50a4ac8ff2d70f15c683c16a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.18-maintenance Automatically creates a PR against the branch backport 2.23-maintenance Automatically creates a PR against the branch
Projects
None yet
3 participants