kyverno-chainsaw: fix build with go 1.26

This commit is contained in:
Harinn
2026-04-10 21:21:15 +07:00
parent 2ba6b19e1a
commit e5d2fff026
2 changed files with 17 additions and 0 deletions
@@ -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 {
@@ -20,6 +20,8 @@ buildGoModule (finalAttrs: {
hash = "sha256-wHwjcpcum3ByBGYUxJ38Qi0RliQUmAIBYmE7t3gEonI=";
};
patches = [ ./go-1.26-testdeps-modulepath.patch ];
vendorHash = "sha256-lG+odKD1TGQ7GTh/y9ogREtY59T8fvN/6FyKsdgsU0M=";
subPackages = [ "." ];