NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.95k stars 1.53k forks source link

nix-env --upgrade should not stop on first build failure #845

Open telotortium opened 8 years ago

telotortium commented 8 years ago

It would be nice if nix-env --upgrade did not stop on the first build failure, or at least had a flag to force the upgrade to continue.

Currently, I'm trying to upgrade to the newest version of unstable after a few months, but one of the packages in this snapshot seems to be broken:

$ nix-env --upgrade
...
builder for ‘/nix/store/36nzkqiy3nmpdwqjalid2zb7s41y077g-vimplugin-youcompleteme-2016-03-08.drv’ failed with exit code 2
error: build of ‘/nix/store/36nzkqiy3nmpdwqjalid2zb7s41y077g-vimplugin-youcompleteme-2016-03-08.drv’ failed

After the failed build of vimplugin-youcompleteme, however, not all the packages were upgraded -- I was still able to run nix-env --upgrade tmux to upgrade tmux from 2.0 to 2.1, showing that some upgradable packages had not been upgraded due to a build failure in an unrelated package.

The --keep-going flag only continues building the broken package after the first failure -- it doesn't upgrade other unrelated packages.

I'm running Nix 1.10.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

ornxka commented 3 years ago

Is there an official workaround to this? It's hard to update on unstable when often at least one package will fail to build.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

NCLI commented 1 year ago

No answer to this?