Unverified Commit 33d70121 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

kyverno-chainsaw: fix build with go 1.26 (#508625)

parents 894c5b8d e06513b1
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
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 {
+4 −3
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
  kyverno-chainsaw,
  lib,
  nix-update-script,
  stdenv,
@@ -16,10 +15,12 @@ buildGoModule (finalAttrs: {
  src = fetchFromGitHub {
    owner = "kyverno";
    repo = "chainsaw";
    rev = "v${finalAttrs.version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-wHwjcpcum3ByBGYUxJ38Qi0RliQUmAIBYmE7t3gEonI=";
  };

  patches = [ ./go-1.26-testdeps-modulepath.patch ];

  vendorHash = "sha256-lG+odKD1TGQ7GTh/y9ogREtY59T8fvN/6FyKsdgsU0M=";

  subPackages = [ "." ];
@@ -42,7 +43,7 @@ buildGoModule (finalAttrs: {
  '';

  passthru.tests.version = testers.testVersion {
    package = kyverno-chainsaw;
    package = finalAttrs.finalPackage;
    command = "chainsaw version";
    version = "v${finalAttrs.version}";
  };