Skip to content

Commit 08b4dd0

Browse files
authored
Merge pull request #423 from vdice/chore/app-updates
chore(apps): update build commands
2 parents 6cca501 + 041d619 commit 08b4dd0

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

apps/cpu-load-gen/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ component = "cpu-load-gen"
1414
source = "main.wasm"
1515
allowed_outbound_hosts = []
1616
[component.cpu-load-gen.build]
17-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
17+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
1818
watch = ["**/*.go", "go.mod"]

apps/hello-world/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ component = "hello-world"
1414
source = "main.wasm"
1515
allowed_outbound_hosts = []
1616
[component.hello-world.build]
17-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
17+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
1818
watch = ["**/*.go", "go.mod"]

apps/order-processor/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ component = "order-processor"
1717
source = "main.wasm"
1818
allowed_outbound_hosts = []
1919
[component.order-processor.build]
20-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
20+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"

apps/outbound-http/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ component = "hello"
1414
source = "main.wasm"
1515
allowed_outbound_hosts = ["https://random-data-api.fermyon.app:443"]
1616
[component.hello.build]
17-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
17+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"

apps/redis-sample/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ source = "main.wasm"
1717
allowed_outbound_hosts = ["redis://*"]
1818

1919
[component.spin-redis-sample.build]
20-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
20+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
2121
watch = ["**/*.go", "go.mod"]
2222

2323
[component.spin-redis-sample.variables]

apps/salutations/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ component = "hello"
1414
source = "../hello-world/main.wasm"
1515
allowed_outbound_hosts = []
1616
[component.hello.build]
17-
command = "cd ../hello-world && tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
17+
command = "cd ../hello-world && tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
1818
watch = ["**/*.go", "go.mod"]
1919

2020
[[trigger.http]]
@@ -25,5 +25,5 @@ component = "goodbye"
2525
source = "main.wasm"
2626
allowed_outbound_hosts = []
2727
[component.goodbye.build]
28-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
28+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
2929
watch = ["**/*.go", "go.mod"]

apps/variable-explorer/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ route = "/..."
1616
component = "variable-explorer"
1717

1818
[component.variable-explorer]
19-
source = "target/wasm32-wasi/release/variable_explorer.wasm"
19+
source = "target/wasm32-wasip1/release/variable_explorer.wasm"
2020
allowed_outbound_hosts = []
2121

2222
[component.variable-explorer.variables]
@@ -25,5 +25,5 @@ platform_name = "{{ platform_name }}"
2525
db_password = "{{ db_password }}"
2626

2727
[component.variable-explorer.build]
28-
command = "cargo build --target wasm32-wasi --release"
28+
command = "cargo build --target wasm32-wasip1 --release"
2929
watch = ["src/**/*.rs", "Cargo.toml"]

apps/variabletester/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN go mod download
99

1010
COPY . .
1111

12-
RUN tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go
12+
RUN tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go
1313

1414
FROM scratch
1515
COPY --from=build /opt/build/main.wasm .

apps/variabletester/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ allowed_outbound_hosts = []
2121
greetee = "{{ greetee }}"
2222

2323
[component.variabletester.build]
24-
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
24+
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm main.go"
2525
watch = ["**/*.go", "go.mod"]

0 commit comments

Comments
 (0)