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

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-cli Relating to the "nix" command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant