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.18-maintenance] fix: Treat empty TMPDIR as unset (#10303) #10887

Merged
merged 6 commits into from
Jun 10, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Jun 10, 2024

Motivation

Manual backport of

Prerequisite for backport of

Context

Priorities and Process

Add 👍 to pull requests you find important.

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

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)
See preceding commit. Not observed in the wild, but is sensible
and consistent with TMPDIR behavior.

(cherry picked from commit b9e7f5a)
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Jun 10, 2024
@roberth roberth enabled auto-merge June 10, 2024 14:18
@roberth roberth merged commit fbe66d1 into 2.18-maintenance Jun 10, 2024
11 of 12 checks passed
@roberth roberth deleted the backport-10303-to-2.18-maintenance branch June 10, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Issues and pull requests concerning the Nix store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant