From e5d2fff0267741152a85bde88cb0bec1ca058e0e Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 10 Apr 2026 21:21:15 +0700 Subject: [PATCH] kyverno-chainsaw: fix build with go 1.26 --- .../go-1.26-testdeps-modulepath.patch | 15 +++++++++++++++ pkgs/by-name/ky/kyverno-chainsaw/package.nix | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/by-name/ky/kyverno-chainsaw/go-1.26-testdeps-modulepath.patch diff --git a/pkgs/by-name/ky/kyverno-chainsaw/go-1.26-testdeps-modulepath.patch b/pkgs/by-name/ky/kyverno-chainsaw/go-1.26-testdeps-modulepath.patch new file mode 100644 index 000000000000..37089cc80a60 --- /dev/null +++ b/pkgs/by-name/ky/kyverno-chainsaw/go-1.26-testdeps-modulepath.patch @@ -0,0 +1,15 @@ +diff --git a/pkg/runner/internal/test_deps.go b/pkg/runner/internal/test_deps.go +index f7728f3..90dbca5 100644 +--- a/pkg/runner/internal/test_deps.go ++++ b/pkg/runner/internal/test_deps.go +@@ -41,6 +41,10 @@ func (*TestDeps) ImportPath() string { + return "" + } + ++func (*TestDeps) ModulePath() string { ++ return "" ++} ++ + func (*TestDeps) StartTestLog(w io.Writer) {} + + func (*TestDeps) StopTestLog() error { diff --git a/pkgs/by-name/ky/kyverno-chainsaw/package.nix b/pkgs/by-name/ky/kyverno-chainsaw/package.nix index bd1617b07cca..0456bcb34f15 100644 --- a/pkgs/by-name/ky/kyverno-chainsaw/package.nix +++ b/pkgs/by-name/ky/kyverno-chainsaw/package.nix @@ -20,6 +20,8 @@ buildGoModule (finalAttrs: { hash = "sha256-wHwjcpcum3ByBGYUxJ38Qi0RliQUmAIBYmE7t3gEonI="; }; + patches = [ ./go-1.26-testdeps-modulepath.patch ]; + vendorHash = "sha256-lG+odKD1TGQ7GTh/y9ogREtY59T8fvN/6FyKsdgsU0M="; subPackages = [ "." ];