Skip to content

Commit 2984643

Browse files
committed
fix: update calculator_reactor to use Component Model bindings
The calculator_reactor target was using manual //export directives which are incompatible with Component Model. Updated to use wit-bindgen-go generated bindings like calculator_component and calculator_component_debug. This fixes the CI failure on ubuntu-latest where wasm-tools component new was failing to find the proper exports.
1 parent 97384b1 commit 2984643

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/go_component/BUILD.bazel

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,14 @@ go_wasm_component(
199199
# This demonstrates the proper way to build Go library components
200200
go_wasm_component(
201201
name = "calculator_reactor",
202-
srcs = ["calculator_reactor.go"],
202+
srcs = [
203+
"calculator.go",
204+
"calculator_bindings.go",
205+
"utils.go",
206+
],
203207
go_mod = "go.mod",
204208
go_sum = "go.sum",
205209
optimization = "release",
206-
wit = ":simple_calculator_wit",
210+
wit = ":calculator_wit",
207211
world = "calculator-world",
208212
)

0 commit comments

Comments
 (0)