about summary refs log tree commit diff
path: root/pkgs/by-name/in
diff options
context:
space:
mode:
authorWeijia Wang2024-05-02 12:58:35 +0200
committerGitHub2024-05-02 12:58:35 +0200
commita6742256e2fa7b27ce709a6c28c6c7a22545c71d (patch)
tree6622ea01a96daa0eedeaeccf54fe606d7cdc56da /pkgs/by-name/in
parenta43f3e993e38da040ebb76e4d13b1045c13504a5 (diff)
parentb2f0e7301eaa8fdeb2b1975f01304dabd1a540d1 (diff)
Merge pull request #279391 from katexochen/buildGoModule/deprecate-buildflags
buildGoModule: announce removal of `buildFlags` and `buildFlagsArray`
Diffstat (limited to 'pkgs/by-name/in')
-rw-r--r--pkgs/by-name/in/incus/generic.nix8
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 cf73d366e10c..dacbe6e96e3f 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 \