Describe the bug
PR Add user@address:port support introduced a regression
Steps To Reproduce
# flake.nix
{
inputs = {
nix.url = "git+ssh://git@github.com:/NixOS/nix?ref=2.31-maintenance&rev=ec6ba866d1a75f04a43d3ac4061a3b0277be842b";
};
outputs = { ... }: { };
}
run:
❯ nixLatest run github:nixos/nix/2.31-maintenance -- flake update
error: path URL 'path://git%2Bssh://git@github.com:/NixOS/nix?ref=2.31-maintenance&rev=ec6ba866d1a75f04a43d3ac4061a3b0277be842b' has unsupported parameter 'ref'
Expected behavior
Previously in release 2.30, having an empty port value would not error out:
❯ nix run github:nixos/nix/2.30-maintenance -- flake update
warning: creating lock file "/home/sebas/test/flake.lock":
• Added input 'nix':
'git+ssh://git@github.com:/NixOS/nix?ref=2.31-maintenance&rev=ec6ba866d1a75f04a43d3ac4061a3b0277be842b' (2025-08-23)
• Added input 'nix/flake-compat':
'github:edolstra/flake-compat/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04)
• Added input 'nix/flake-parts':
'github:hercules-ci/flake-parts/205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9?narHash=sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c%3D' (2024-12-04)
• Added input 'nix/flake-parts/nixpkgs-lib':
follows 'nix/nixpkgs'
• Added input 'nix/git-hooks-nix':
'github:cachix/git-hooks.nix/aa9f40c906904ebd83da78e7f328cd8aeaeae785?narHash=sha256-NdaCraHPp8iYMWzdXAt5Nv6sA3MUzlCiGiR586TCwo0%3D' (2024-12-15)
• Added input 'nix/git-hooks-nix/flake-compat':
follows 'nix'
• Added input 'nix/git-hooks-nix/gitignore':
follows 'nix'
• Added input 'nix/git-hooks-nix/nixpkgs':
follows 'nix/nixpkgs'
• Added input 'nix/git-hooks-nix/nixpkgs-stable':
follows 'nix/nixpkgs'
• Added input 'nix/nixpkgs':
'github:NixOS/nixpkgs/cd32a774ac52caaa03bcfc9e7591ac8c18617ced?narHash=sha256-VtMQg02B3kt1oejwwrGn50U9Xbjgzfbb5TV5Wtx8dKI%3D' (2025-08-17)
• Added input 'nix/nixpkgs-23-11':
'github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446?narHash=sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw%3D' (2024-05-31)
• Added input 'nix/nixpkgs-regression':
'github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2?narHash=sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw%3D' (2022-01-24)
Metadata
❯ nix-env --version
nix-env (Nix) 2.30.3
Checklist
Add 👍 to issues you find important.
Describe the bug
PR Add user@address:port support introduced a regression
Steps To Reproduce
run:
Expected behavior
Previously in release
2.30, having an empty port value would not error out:Metadata
Checklist
Add 👍 to issues you find important.