Skip to content

Fix registry pin ref lookup#14574

Merged
edolstra merged 1 commit into
NixOS:masterfrom
pkpbynum:pb/fix-registry-pin
Nov 17, 2025
Merged

Fix registry pin ref lookup#14574
edolstra merged 1 commit into
NixOS:masterfrom
pkpbynum:pb/fix-registry-pin

Conversation

@pkpbynum
Copy link
Copy Markdown
Contributor

Motivation

Closes #14342

The ref was being removed before the lockedRef.resolve lookup. This happened whenever the url was previously in the registry returned by getRegistry(). The user registry errs by default, but you get the same error by specifying --registry:

$ nix registry add foo github:NixOS/nixpkgs/master --registry ./custom.json
$ nix registry pin foo --registry ./custom.json
error: cannot find flake 'flake:foo' in the flake registries

Context


Add 👍 to pull requests you find important.

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

@pkpbynum pkpbynum requested a review from edolstra as a code owner November 15, 2025 22:59
@github-actions github-actions Bot added the new-cli Relating to the "nix" command label Nov 15, 2025
@edolstra edolstra added this pull request to the merge queue Nov 17, 2025
Merged via the queue into NixOS:master with commit f8141a2 Nov 17, 2025
16 checks passed
@edolstra edolstra mentioned this pull request Dec 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.

Can't nix registry pin a local registry entry

2 participants