mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
update-dotnet-lockfiles: add startWith flag
This allows you to resume after a failure by passing the name of the first package you want to be fetched.
This commit is contained in:
parent
3a7d2b8bbf
commit
988b57fa74
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
infrastructure. Regular updates should be done through the individual packages
|
infrastructure. Regular updates should be done through the individual packages
|
||||||
update scripts.
|
update scripts.
|
||||||
*/
|
*/
|
||||||
|
{ startWith ? null }:
|
||||||
let
|
let
|
||||||
pkgs = import ../.. { config.allowAliases = false; };
|
pkgs = import ../.. { config.allowAliases = false; };
|
||||||
|
|
||||||
|
@ -40,7 +41,8 @@ let
|
||||||
(lib.filter (p:
|
(lib.filter (p:
|
||||||
(builtins.tryEval p.outPath).success ||
|
(builtins.tryEval p.outPath).success ||
|
||||||
builtins.trace "warning: skipping ${p.name} because it failed to evaluate" false)
|
builtins.trace "warning: skipping ${p.name} because it failed to evaluate" false)
|
||||||
(packagesWith (p: p ? fetch-deps) pkgs));
|
((pkgs: (lib.drop (lib.lists.findFirstIndex (p: p.name == startWith) 0 pkgs) pkgs))
|
||||||
|
(packagesWith (p: p ? fetch-deps) pkgs)));
|
||||||
|
|
||||||
helpText = ''
|
helpText = ''
|
||||||
Please run:
|
Please run:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue