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 profile upgrade: unable to upgrade packages via their flake url #10463

Open
lolbinarycat opened this issue Apr 10, 2024 · 1 comment
Open
Labels

Comments

@lolbinarycat
Copy link

Describe the bug

it is not possible to upgrade a package using the same flake reference you installed it with.

this conflicts with the behavior of every other package manager, where the name used to install and update a package are the same.

it also is a problem when you have multiple packages with the same flake attribute. this is especially common with default packages (packages.x86_64-linux.default)

Steps To Reproduce

  1. $ nix profile install nixpkgs#hello
  2. $ nix profile upgrade nixpkgs#hello
  3. warning: 'nixpkgs#hello' does not match any packages

Expected behavior

the package should be updated

nix-env --version output
nix-env (Nix) 2.18.1

Priorities

Add 👍 to issues you find important.

@bobvanderlinden
Copy link
Member

I think this is a duplicate of #10064. This already has an implementation here: #10198, but it isn't being picked up for review yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants