mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nixos/k3s: get tests working again
Some of the attributes fetched throw, so tryEval them. Recurse into the
attribute set to pick up all the tests.
(cherry picked from commit 727809f534)
This commit is contained in:
committed by
github-actions[bot]
parent
3e1e848be4
commit
c239eca2d9
@@ -4,9 +4,11 @@
|
||||
lib ? pkgs.lib,
|
||||
}:
|
||||
let
|
||||
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
||||
allK3s = lib.filterAttrs (
|
||||
n: _: lib.strings.hasPrefix "k3s_" n && (builtins.tryEval pkgs.${n}).success
|
||||
) pkgs;
|
||||
in
|
||||
{
|
||||
lib.recurseIntoAttrs {
|
||||
airgap-images = lib.mapAttrs (
|
||||
_: k3s: import ./airgap-images.nix { inherit system pkgs k3s; }
|
||||
) allK3s;
|
||||
|
||||
Reference in New Issue
Block a user