Skip to content

Commit

Permalink
Use go1.24 toolchain for wasm_exec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jan 24, 2025
1 parent 9fdef6c commit c4951e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/wowsims/cata

go 1.23
go 1.23.0
toolchain go1.24rc2

require (
github.com/golang/protobuf v1.5.4
Expand Down
2 changes: 1 addition & 1 deletion vite.build-workers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const args = minimist(process.argv.slice(2), { boolean: ['watch'] });
const buildWorkers = async () => {
const { stdout } = await execAsync('go env GOROOT');
const GO_ROOT = stdout.replace('\n', '');
const wasmExecutablePath = path.join(GO_ROOT, '/misc/wasm/wasm_exec.js');
const wasmExecutablePath = path.join(GO_ROOT, '/lib/wasm/wasm_exec.js');
const wasmFile = await fs.readFile(wasmExecutablePath, 'utf8');

Object.entries(workers).forEach(async ([name, sourcePath]) => {
Expand Down

0 comments on commit c4951e2

Please sign in to comment.