nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.61k stars 79 forks source link

Fatal error when branch is not found #288

Open jhbertra opened 4 years ago

jhbertra commented 4 years ago

command (from a pure nix-shell): niv update nixpkgs -o NixOS -r nixpkgs-channels -b master

Here is the error dump I was shown:

Update nixpkgs
  FATAL: Could not read the output of 'nix-prefetch-url'. This is a bug. Please create a
  ticket:

    https://github.com/nmattia/niv/issues/new

  Thanks! I'll buy you a beer.
  command:
  nix-prefetch-url--unpack https://github.com/NixOS/nixpkgs/archive/nixpkgs-channels.tar.gz --name nixpkgs-channels.tar.gz
  stdout:

  stderr:
  error: unable to download 'https://github.com/NixOS/nixpkgs/archive/nixpkgs-channels.tar.gz': HTTP error 404

  FATAL: One or more packages failed to update:
  nixpkgs: ExitFailure 1
ERROR: ExitFailure 1

You can send me my beer in the mail 🍺

nmattia commented 4 years ago

Ah, looks like there's no master branch. Arguably niv could exit with a nicer error. You get a beer :)