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

nix upgrade-nix: Give a better error message if the profile is using 'nix profile' #12166

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

edolstra
Copy link
Member

@edolstra edolstra commented Jan 9, 2025

Motivation

DeterminateSystems/nix-installer#1362

Before:

error: directory '/nix/var/nix/profiles/per-user/eelco/test/bin' does not appear to be part of a Nix profile

After:

error: directory "/nix/var/nix/profiles/per-user/eelco/test" is managed by 'nix profile' and currently cannot be upgraded by 'nix upgrade-nix'

Context


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added the new-cli Relating to the "nix" command label Jan 9, 2025
@Mic92
Copy link
Member

Mic92 commented Jan 11, 2025

@mergify queue

Copy link
Contributor

mergify bot commented Jan 11, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at d155e34

@mergify mergify bot merged commit d155e34 into NixOS:master Jan 11, 2025
13 checks passed
@Mic92 Mic92 added backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch labels Jan 11, 2025
mergify bot added a commit that referenced this pull request Jan 11, 2025
…2166

nix upgrade-nix: Give a better error message if the profile is using 'nix profile' (backport #12166)
@roberth roberth added automatic backport This PR is a backport produced by automation (does not trigger backporting) and removed automatic backport This PR is a backport produced by automation (does not trigger backporting) labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.24-maintenance Automatically creates a PR against the branch backport 2.25-maintenance Automatically creates a PR against the branch new-cli Relating to the "nix" command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants