Skip to content

Commit f4f5847

Browse files
committed
fix: add utils.go to Go components using main.go
- calculator_component, http_service_component, calculator_component_debug now include utils.go - main.go calls TestFunction, Add, Multiply from utils.go so all components need it - simple_test and multi_file_test already had utils.go and work - http_service_component still fails due to missing binding dependency (separate issue)
1 parent 408de5a commit f4f5847

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/go_component/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ go_wasm_component(
5050
srcs = [
5151
"calculator.go",
5252
"main.go",
53+
"utils.go",
5354
],
5455
adapter = "//wasm/adapters:wasi_snapshot_preview1",
5556
go_mod = "go.mod",
@@ -70,6 +71,7 @@ go_wasm_component(
7071
"handlers.go",
7172
"main.go",
7273
"service.go",
74+
"utils.go",
7375
],
7476
adapter = "//wasm/adapters:wasi_snapshot_preview1",
7577
go_mod = "go.mod",
@@ -83,6 +85,7 @@ go_wasm_component(
8385
srcs = [
8486
"calculator.go",
8587
"main.go",
88+
"utils.go",
8689
],
8790
adapter = "//wasm/adapters:wasi_snapshot_preview1",
8891
go_mod = "go.mod",

0 commit comments

Comments
 (0)