Skip to content

Commit df20472

Browse files
authored
fix(wasm-go-build): correct the build command (#2799)
1 parent 9186b55 commit df20472

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/build-and-push-wasm-plugin-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
set -e
123123
cd /workspace/plugins/wasm-go/extensions/${PLUGIN_NAME}
124124
go mod tidy
125-
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o plugin.wasm main.go
125+
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o plugin.wasm .
126126
tar czvf plugin.tar.gz plugin.wasm
127127
echo ${{ secrets.REGISTRY_PASSWORD }} | oras login -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin ${{ env.IMAGE_REGISTRY_SERVICE }}
128128
oras push ${target_image} ${push_command}

plugins/wasm-go/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /workspace/extensions/$PLUGIN_NAME
1515

1616
RUN go mod tidy
1717
RUN \
18-
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o /main.wasm ./
18+
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o /main.wasm .
1919

2020
FROM scratch AS output
2121

plugins/wasm-go/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ builder:
6060
@echo "image: ${BUILDER}"
6161

6262
local-build:
63-
cd extensions/${PLUGIN_NAME};GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ./main.wasm ./
63+
cd extensions/${PLUGIN_NAME};GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ./main.wasm .
6464

6565
@echo ""
6666
@echo "wasm: extensions/${PLUGIN_NAME}/main.wasm"

0 commit comments

Comments
 (0)