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=";