update component name

This commit is contained in:
Lorenzo Venerandi 2024-12-14 02:26:26 +01:00
parent 93344915b9
commit 798b8ec39b
4 changed files with 13 additions and 4 deletions

View File

@ -49,4 +49,4 @@ WORKDIR /app
# Install go dependencies, build the wasm module, push it to the registry
#CMD ["sh", "-c", "go mod download && go mod verify && go mod tidy && wash build && wash push $REGISTRY build/*_s.wasm"]
CMD ["sh", "-c", "go env -w GOFLAGS=-buildvcs=false && go mod download && go mod verify && wash build && wash push $REGISTRY build/*_s.wasm"]
CMD ["sh", "-c", "go env -w GOFLAGS=-buildvcs=false && go mod download && go mod verify && wash build && wash push $REGISTRY build/.wasm"]

View File

@ -1,7 +1,7 @@
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: tinygo-hello-world
name: go-data-stream
annotations:
description: 'HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)'
wasmcloud.dev/authors: wasmCloud team

View File

@ -2,6 +2,15 @@
# It is not intended for manual editing.
version = 1
[[packages]]
name = "wasi:config"
registry = "wasi.dev"
[[packages.versions]]
requirement = "=0.2.0-draft"
version = "0.2.0-draft"
digest = "sha256:aa2d36d0843999edad80a13bf22f4529277f7b6012429f8a5d1f9499f3793c1a"
[[packages]]
name = "wasi:logging"
registry = "wasi.dev"

View File

@ -1,4 +1,4 @@
name = "go_nats_client"
name = "go_nats_stream_client"
language = "tinygo"
type = "component"
version = "1.0.0"
@ -6,7 +6,7 @@ version = "1.0.0"
[component]
wit_world = "hello"
wasm_target = "wasm32-wasip2"
destination = "build/go_nats_client_s.wasm"
destination = "build/go_nats_stream_client.wasm"
[registry]
url = "gitea.rebus.ninja/lore"