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

profile: suggest removal using profile entry name #10060

Merged

Conversation

bobvanderlinden
Copy link
Member

@bobvanderlinden bobvanderlinden commented Feb 21, 2024

Motivation

When a file conflict arises during a package install a suggestion is made to remove the old entry. This was previously done using the installable URLs of the old entry. These (resolved) URLs are quite verbose and often do not match the source URL of the existing entry (see #8728).

This change uses the recently introduced profile entry name for the suggestion (see #9656), resulting in a simpler output.

The improvement is easily seen in the change to the functional test.

Context

Fixes #8728
As mentioned: #7967 (comment)
Follow up from #9656

Priorities and Process

Add 👍 to pull requests you find important.

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

When a file conflict arises during a package install a suggestion is
made to remove the old entry. This was previously done using the
installable URLs of the old entry. These URLs are quite verbose and
often do not equal the URL of the existing entry.

This change uses the recently introduced profile entry name for the
suggestion, resulting in a simpler output.

The improvement is easily seen in the change to the functional test.
@github-actions github-actions bot added new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority labels Feb 21, 2024
@edolstra edolstra merged commit f183eef into NixOS:master Feb 22, 2024
10 checks passed
@bobvanderlinden bobvanderlinden deleted the pr-simple-profile-remove-suggestion branch February 22, 2024 10:55
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 with-tests Issues related to testing. PRs with tests have some priority
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Nix recommends to remove the wrong installation name
2 participants