From c98c3b5e82818f44cb4357ad35917aa9e52fa840 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 6 May 2026 07:44:30 -0700 Subject: [PATCH] fix(templates): Update build command for Go component Signed-off-by: Adam Reese --- templates/http-go/metadata/snippets/component.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/http-go/metadata/snippets/component.txt b/templates/http-go/metadata/snippets/component.txt index 54e38762d9..24e18bab3d 100644 --- a/templates/http-go/metadata/snippets/component.txt +++ b/templates/http-go/metadata/snippets/component.txt @@ -6,6 +6,6 @@ component = "{{project-name | kebab_case}}" source = "{{ output-path }}/main.wasm" allowed_outbound_hosts = [] [component.{{project-name | kebab_case}}.build] -command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm ." +command = "go tool componentize-go build" workdir = "{{ output-path }}" watch = ["**/*.go", "go.mod"]