hof: fix build with Go 1.26
This commit is contained in:
@@ -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 {
|
||||
@@ -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=";
|
||||
|
||||
Reference in New Issue
Block a user