hof: fix build with Go 1.26 (#516424)

This commit is contained in:
yaya
2026-05-04 17:55:23 +00:00
committed by GitHub
2 changed files with 19 additions and 0 deletions
@@ -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 {
+5
View File
@@ -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=";