aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2024-05-30 23:20:42 +0200
committerLinus Heckemann <git@sphalerite.org>2024-05-30 21:53:51 +0000
commit3df013597d7a2b5e400839e6625c05bd47de4dca (patch)
treec2165caf7b2ba73e0b75858dffc0f9b5f4089700 /doc
parent2f104bbe3baf1e43a3fd78dc04f3f8ed48183554 (diff)
libfetchers: handle nonexistent refs in GitLab repos more gracefully
Before: $ nix flake lock --override-input nixpkgs gitlab:simple-nixos-mailserver/nixos-mailserver/nonexistent fetching git input 'git+file:///home/linus/projects/lix' fetching gitlab input 'gitlab:simple-nixos-mailserver/nixos-mailserver/nonexistent' error: [json.exception.type_error.302] type must be string, but is null After: $ outputs/out/bin/nix flake lock --override-input nixpkgs gitlab:simple-nixos-mailserver/nixos-mailserver/nonexistent fetching git input 'git+file:///home/linus/projects/lix' fetching gitlab input 'gitlab:simple-nixos-mailserver/nixos-mailserver/nonexistent' error: … while updating the lock file of flake 'git+file:///home/linus/projects/lix?ref=refs/heads/fix-gitlab-nonexistent&rev=915f16a619a36237a099b9aa9afed6d14ff613b4' … while updating the flake input 'nixpkgs' … while fetching the input 'gitlab:simple-nixos-mailserver/nixos-mailserver/nonexistent' error: No commits returned by GitLab API -- does the ref really exist? Change-Id: Id9bc79d98348500e152ed519bb3ac79a3d15c38d
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions