Unverified Commit 765506d0 authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

gokapi: apply patch to allow builds with go 1.24 (#403605)

parents a3394a07 11f6058b
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/build/go-generate/copyStaticFiles.go b/build/go-generate/copyStaticFiles.go
index 9f8a049..de21bdd 100644
--- a/build/go-generate/copyStaticFiles.go
+++ b/build/go-generate/copyStaticFiles.go
@@ -10,7 +10,7 @@ import (
 )
 
 func main() {
-	copyFile(build.Default.GOROOT+"/misc/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js")
+	copyFile(build.Default.GOROOT+"/lib/wasm/wasm_exec.js", "../../internal/webserver/web/static/js/wasm_exec.js")
 	copyFile("../../go.mod", "../../build/go.mod")
 	copyFile("../../openapi.json", "../../internal/webserver/web/static/apidocumentation/openapi.json")
 }
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,10 @@ buildGoModule rec {

  vendorHash = "sha256-9GRAlgng+yq7q0VQz374jIOCjeDIIDD631BglM/FsQQ=";

  patches = [
    ./go-1.24.patch
  ];

  # This is the go generate is ran in the upstream builder, but we have to run the components separately for things to work.
  preBuild = ''
    cd ./cmd/gokapi/