Unverified Commit 89f78dc3 authored by yaya's avatar yaya Committed by GitHub
Browse files

hof: fix build with Go 1.26 (#516424)

parents aef83d0a 557b6ece
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
diff --git a/script/runtime/exe.go b/script/runtime/exe.go
index d15bf50f..66f784a4 100644
--- a/script/runtime/exe.go
+++ b/script/runtime/exe.go
@@ -140,6 +140,9 @@ func (nopTestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
 func (nopTestDeps) ImportPath() string {
 	return ""
 }
+func (nopTestDeps) ModulePath() string {
+	return ""
+}
 func (nopTestDeps) StartTestLog(w io.Writer) {}
 
 func (nopTestDeps) StopTestLog() error {
+5 −0
Original line number Diff line number Diff line
@@ -17,6 +17,11 @@ buildGoModule (finalAttrs: {
    hash = "sha256-okc11mXqB/PaXd0vsRuIIL70qWSFprvsZJtE6PvCaIg=";
  };

  patches = [
    # https://github.com/hofstadter-io/hof/pull/411
    ./go-testdeps-modulepath.patch
  ];

  nativeBuildInputs = [ installShellFiles ];

  vendorHash = "sha256-mLOWnHzKw/B+jFNuswejEnYbPxFkk95I/BWeHRTH55I=";