diff options
author | Weijia Wang | 2024-05-02 12:58:35 +0200 |
---|---|---|
committer | GitHub | 2024-05-02 12:58:35 +0200 |
commit | a6742256e2fa7b27ce709a6c28c6c7a22545c71d (patch) | |
tree | 6622ea01a96daa0eedeaeccf54fe606d7cdc56da /pkgs/by-name/in | |
parent | a43f3e993e38da040ebb76e4d13b1045c13504a5 (diff) | |
parent | b2f0e7301eaa8fdeb2b1975f01304dabd1a540d1 (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.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 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 \ |