From e115d700c4a7acefc7b4c60e23a3b52e98128e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 24 Mar 2026 23:23:05 +0100 Subject: [PATCH] ginkgo: add Go 1.26 compatibility patch Go 1.26 added ArtifactDir() to the testing.TB interface. Ginkgo 2.28.1 doesn't implement this method yet, causing test failures. Add a patch to implement the missing method. https://github.com/onsi/ginkgo/pull/1648 --- pkgs/by-name/gi/ginkgo/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/gi/ginkgo/package.nix b/pkgs/by-name/gi/ginkgo/package.nix index 3bcddbe18d28..2cd51b4461fa 100644 --- a/pkgs/by-name/gi/ginkgo/package.nix +++ b/pkgs/by-name/gi/ginkgo/package.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + fetchpatch, testers, ginkgo, }: @@ -18,6 +19,14 @@ buildGoModule (finalAttrs: { }; vendorHash = "sha256-I3n1FPINb/nhi4QUzRFEspn7REN1dQEPg8Bhb3PemQU="; + patches = [ + # Add ArtifactDir() to support Go 1.26 testing.TB interface + # https://github.com/onsi/ginkgo/pull/1648 + (fetchpatch { + url = "https://github.com/onsi/ginkgo/pull/1648.patch"; + hash = "sha256-O8YWPAvf0ukPWSTm6+YKnV/L+qSL0RCoBswmiQVXOKI="; + }) + ]; # integration tests expect more file changes # types tests are missing CodeLocation excludedPackages = [