Skip to content

Commit

Permalink
chore: update to spin v3
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Jan 12, 2025
1 parent 4772dee commit d99020f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion multiverse/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.21

toolchain go1.21.1

require github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f
require github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904

require github.com/julienschmidt/httprouter v1.3.0 // indirect
4 changes: 2 additions & 2 deletions multiverse/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f h1:TpBc4KlrtXHi9Uza28AH77aNg10Wb8W2vxhQOxmluUs=
github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f/go.mod h1:kfJ+gdf/xIaKrsC6JHCUDYMv2Bzib1ohFIYUzvP+SCw=
github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904 h1:56PveUp7kE1r7TYnjN+871XOjCxmp1BRjhBEP/a84ow=
github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904/go.mod h1:9GoW1+MR0gN1OEinITtjPOzmu0dur3U6ty3pIH/gN24=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
4 changes: 2 additions & 2 deletions multiverse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strconv"
"strings"

spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
"github.com/fermyon/spin/sdk/go/v2/kv"
spinhttp "github.com/fermyon/spin-go-sdk/http"
"github.com/fermyon/spin-go-sdk/kv"
)

const defaultCount = 4
Expand Down
4 changes: 2 additions & 2 deletions spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source = "universe/main.wasm"
key_value_stores = ["default"]
allowed_outbound_hosts = []
[component.universe.build]
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm ."
command = "tinygo build -target=wasip1 -no-debug -o main.wasm ."
workdir = "universe"
watch = ["**/*.go", "go.mod"]

Expand All @@ -28,6 +28,6 @@ source = "multiverse/main.wasm"
key_value_stores = ["default"]
allowed_outbound_hosts = ["http://self", "https://self"]
[component.multiverse.build]
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm ."
command = "tinygo build -target=wasip1 -no-debug -o main.wasm ."
workdir = "multiverse"
watch = ["**/*.go", "go.mod"]
4 changes: 2 additions & 2 deletions universe/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.21
toolchain go1.21.1

require (
github.com/acifani/vita v1.3.0
github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f
github.com/acifani/vita v1.4.1
github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904
)

require github.com/julienschmidt/httprouter v1.3.0 // indirect
8 changes: 4 additions & 4 deletions universe/go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/acifani/vita v1.3.0 h1:RYg9E+uW80s0f80Jm2gtzwOKSG6nmtvA60c17G7qzbg=
github.com/acifani/vita v1.3.0/go.mod h1:r5ldyqj9b7t2/sDrUcLOQbQ9g/I28JQ7nSUjvRtruyw=
github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f h1:TpBc4KlrtXHi9Uza28AH77aNg10Wb8W2vxhQOxmluUs=
github.com/fermyon/spin/sdk/go/v2 v2.0.0-20231109195451-3fbff440a53f/go.mod h1:kfJ+gdf/xIaKrsC6JHCUDYMv2Bzib1ohFIYUzvP+SCw=
github.com/acifani/vita v1.4.1 h1:uzPxJQq86GtftsBqwghEOXXJO4iXPzsWlmfkHbci9LM=
github.com/acifani/vita v1.4.1/go.mod h1:r5ldyqj9b7t2/sDrUcLOQbQ9g/I28JQ7nSUjvRtruyw=
github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904 h1:56PveUp7kE1r7TYnjN+871XOjCxmp1BRjhBEP/a84ow=
github.com/fermyon/spin-go-sdk v0.0.0-20240918180601-c2d4ef2e0904/go.mod h1:9GoW1+MR0gN1OEinITtjPOzmu0dur3U6ty3pIH/gN24=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
4 changes: 2 additions & 2 deletions universe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/acifani/vita/lib/game"

spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
"github.com/fermyon/spin/sdk/go/v2/kv"
spinhttp "github.com/fermyon/spin-go-sdk/http"
"github.com/fermyon/spin-go-sdk/kv"
)

const (
Expand Down

0 comments on commit d99020f

Please sign in to comment.