mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +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
|
||||
update scripts.
|
||||
*/
|
||||
{ startWith ? null }:
|
||||
let
|
||||
pkgs = import ../.. { config.allowAliases = false; };
|
||||
|
||||
|
@ -40,7 +41,8 @@ let
|
|||
(lib.filter (p:
|
||||
(builtins.tryEval p.outPath).success ||
|
||||
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 = ''
|
||||
Please run:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue