From 38e68c427d900dfd09da502cef3eb6625f1aff47 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Sat, 18 Oct 2025 18:22:38 +0200 Subject: [PATCH] gdu: fix test skipping This wasn't working as intended, as the skip flag was added twice, which caused the second occurrence to overwrite the first, and the build to fail on aarch64-linux, see https://hydra.nixos.org/build/308978158/nixlog/1 Signed-off-by: Paul Meyer --- pkgs/by-name/gd/gdu/package.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/gd/gdu/package.nix b/pkgs/by-name/gd/gdu/package.nix index 39d4e677d915..22594fac7452 100644 --- a/pkgs/by-name/gd/gdu/package.nix +++ b/pkgs/by-name/gd/gdu/package.nix @@ -42,11 +42,14 @@ buildGoModule (finalAttrs: { doCheck = !stdenv.hostPlatform.isDarwin; - checkFlags = [ - # https://github.com/dundee/gdu/issues/371 - "-skip=TestStoredAnalyzer" - "-skip=TestAnalyzePathWithIgnoring" - ]; + checkFlags = + let + skippedTests = [ + "TestStoredAnalyzer" # https://github.com/dundee/gdu/issues/371 + "TestAnalyzePathWithIgnoring" + ]; + in + [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; doInstallCheck = true;