The following command behaves differently on nixos and nix darwin:
nix flake metadata git+ssh://git@github.com/mygh/myrepo?ref=mybranch&dir=mysubdir
.
On darwin, this correctly finds the flake in subdir and returns what I expect from nix flake metadata
. However, on nixos – I get a 404. After some debugging, I found that the ?dir=
part of the command doesn’t seem to get stripped for the nixos git invocation (the debug logs show fetching Git repository: 'ssh://git@github.com/.../myrepo.git?dir=subdir
followed by is not a valid repository name
)