diff options
author | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2024-01-07 11:10:58 +0100 |
---|---|---|
committer | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2024-04-15 07:39:04 +0200 |
commit | b2f0e7301eaa8fdeb2b1975f01304dabd1a540d1 (patch) | |
tree | af4a5381e981ca8fa34c3cfe2ab2ca26bd763bac /pkgs/by-name/in | |
parent | dd540970e215516c6682bd5f7c7eb9f4bb666c62 (diff) |
treewide: remove buildFlags use in buildGoModule
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Diffstat (limited to 'pkgs/by-name/in')
-rw-r--r-- | pkgs/by-name/in/incus/generic.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/by-name/in/incus/generic.nix b/pkgs/by-name/in/incus/generic.nix index cf73d366e10c8..dacbe6e96e3f1 100644 --- a/pkgs/by-name/in/incus/generic.nix +++ b/pkgs/by-name/in/incus/generic.nix @@ -81,7 +81,8 @@ buildGoModule rec { make incus-agent incus-migrate ''; - preCheck = + # Disable tests requiring local operations + checkFlags = let skippedTests = [ "TestValidateConfig" @@ -91,10 +92,7 @@ buildGoModule rec { "TestContainerTestSuite" ]; in - '' - # Disable tests requiring local operations - buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]") - ''; + [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; postInstall = '' installShellCompletion --cmd incus \ |