From 557b6ece8b230a740e2deaf35444d73210fb0f3c Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 4 May 2026 17:11:50 +0700 Subject: [PATCH] hof: fix build with Go 1.26 --- pkgs/by-name/ho/hof/go-testdeps-modulepath.patch | 14 ++++++++++++++ pkgs/by-name/ho/hof/package.nix | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/by-name/ho/hof/go-testdeps-modulepath.patch diff --git a/pkgs/by-name/ho/hof/go-testdeps-modulepath.patch b/pkgs/by-name/ho/hof/go-testdeps-modulepath.patch new file mode 100644 index 000000000000..a30d79f09458 --- /dev/null +++ b/pkgs/by-name/ho/hof/go-testdeps-modulepath.patch @@ -0,0 +1,14 @@ +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 { diff --git a/pkgs/by-name/ho/hof/package.nix b/pkgs/by-name/ho/hof/package.nix index 75abe20896c5..f5884c8649ff 100644 --- a/pkgs/by-name/ho/hof/package.nix +++ b/pkgs/by-name/ho/hof/package.nix @@ -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=";