is this really the case? I just tried it right now and it seems not to be the case. Only nix flake lock --update-input nixpkgs updates the flake lock in my flake
If i run nix build --update-input nixpkgs first it doesn’t fetch the newest nixpkgs from my branch.
When i do it like you it works for me too. (it finds the already downloaded nixpgks revision)
I am using nix 2.11.1 on NixOS 22.11
if you can confirm the issue I think it makes sense to open a bug ticked
for me nix build --update-input nixpkgs doesn’t work to fetch the latest revision of my nixpgks branch.
It only finds it if i run nix flake lock --update-input nixpkgs before.
(and reset the lock file as you did)
to reproduce it you need to be sure that in your nix store you don’t have the updated-input.
I tried it today again and it did not fail to fetch the latest changes in the repository. To me it still seems to be unstable but have no idea how to test further.