From 419622880a89aa83c8f2fe108611b08573564a64 Mon Sep 17 00:00:00 2001 From: networkException Date: Sun, 27 Jul 2025 14:42:30 +0200 Subject: [PATCH] open-policy-agent: skip test too dependent on go version This patch fixes a build failure since go 1.24.5 by disabling a test that would check for specific metrics being exposed. --- pkgs/by-name/op/open-policy-agent/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/op/open-policy-agent/package.nix b/pkgs/by-name/op/open-policy-agent/package.nix index 1d637fc6640b..51aee9311bcf 100644 --- a/pkgs/by-name/op/open-policy-agent/package.nix +++ b/pkgs/by-name/op/open-policy-agent/package.nix @@ -49,6 +49,10 @@ buildGoModule (finalAttrs: { "TestInterQueryCache_ClientError" "TestIntraQueryCache_ClientError" "TestSSOCredentialService" + + # This test depends on the metrics available in go not changing. This is a bit + # too unstable for us updating go independently. + "TestJSONSerialization" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Skip tests that require network, not available in the darwin sandbox