Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3dc43a

Browse files
authoredMar 16, 2023
deps: updates to latest TinyGo and other dependencies (#24)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
1 parent 79ff5e2 commit d3dc43a

File tree

24 files changed

+23
-21
lines changed

24 files changed

+23
-21
lines changed
 

‎.github/workflows/commit.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ on:
2121

2222
jobs:
2323
check:
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525
strategy:
2626
matrix:
2727
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
28-
- "1.18"
28+
- "1.19"
2929

3030
steps:
3131
- uses: actions/checkout@v3
@@ -46,13 +46,13 @@ jobs:
4646
- run: make check
4747

4848
test:
49-
runs-on: ubuntu-20.04
49+
runs-on: ubuntu-22.04
5050
strategy:
5151
matrix:
5252
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
53-
- "1.18"
53+
- "1.19"
5454
tinygo-version: # Note: TinyGo only supports latest: https://github.com/tinygo-org/tinygo/releases
55-
- "0.26.0" # Latest
55+
- "0.27.0" # Latest
5656

5757
steps:
5858
- uses: actions/checkout@v3

‎.github/workflows/testdata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
# Note: TinyGo is not idempotent when generating wasm, so we neither check in
2424
# %.wasm, nor do we verify it matches what's checked in.
2525
testdata:
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2727
strategy:
2828
matrix:
2929
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
30-
- "1.18"
30+
- "1.19"
3131
tinygo-version: # Note: TinyGo only supports latest: https://github.com/tinygo-org/tinygo/releases
32-
- "0.26.0" # Latest
32+
- "0.27.0" # Latest
3333

3434
steps:
3535
- uses: actions/checkout@v3
@@ -48,7 +48,7 @@ jobs:
4848
4949
- name: "Set up wat2wasm"
5050
run: | # Needed for testdata. wabt includes wat2wasm.
51-
wabt_version=1.0.30
51+
wabt_version=1.0.32
5252
wabt_url=https://github.com/WebAssembly/wabt/releases/download/${wabt_version}/wabt-${wabt_version}-ubuntu.tar.gz
5353
curl -sSL ${wabt_url} | tar --strip-components 2 -C /usr/local/bin -xzf - wabt-${wabt_version}/bin/wat2wasm
5454

‎Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
goimports := golang.org/x/tools/cmd/goimports@v0.2.0
2-
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
1+
gosimports := github.com/rinchsan/gosimports/cmd/gosimports@v0.3.7
2+
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
33

44
.PHONY: testdata
55
testdata:
@@ -48,7 +48,7 @@ format:
4848
awk '/^import \($$/,/^\)$$/{if($$0=="")next}{print}' $$f > /tmp/fmt; \
4949
mv /tmp/fmt $$f; \
5050
done
51-
@go run $(goimports) -w -local github.com/http-wasm/http-wasm-guest-tinygo `find . -name '*.go'`
51+
@go run $(gosimports) -local github.com/http-wasm/http-wasm-guest-tinygo -w $(shell find . -name '*.go' -type f)
5252

5353
.PHONY: check
5454
check:

‎examples/router/main.wasm

-1.4 KB
Binary file not shown.

‎examples/wasi/main.wasm

-3.8 KB
Binary file not shown.

‎go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/http-wasm/http-wasm-guest-tinygo
22

3-
go 1.18
3+
go 1.19

‎internal/e2e/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ go 1.18
44

55
require (
66
github.com/http-wasm/http-wasm-guest-tinygo v0.0.0
7-
github.com/http-wasm/http-wasm-host-go v0.3.2
8-
github.com/stretchr/testify v1.8.0
9-
github.com/tetratelabs/wazero v1.0.0-pre.8
7+
github.com/http-wasm/http-wasm-host-go v0.3.5
8+
github.com/stretchr/testify v1.8.2
9+
github.com/tetratelabs/wazero v1.0.0-rc.2
1010
)
1111

1212
require (

‎internal/e2e/go.sum

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
22
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/http-wasm/http-wasm-host-go v0.3.2 h1:iOStbkL8rUKSSwNl/+vt4pUiQrwCrEFoRTSfEU4D/v8=
5-
github.com/http-wasm/http-wasm-host-go v0.3.2/go.mod h1:GSIkcGfuhxYJdowxvsnsoIKH7SzoMqUEmbog8o9NkhA=
4+
github.com/http-wasm/http-wasm-host-go v0.3.5 h1:PEbiFN6gi7Tpgs4PBlC3XCF3uUzPp0D95z9yD5rpYEo=
5+
github.com/http-wasm/http-wasm-host-go v0.3.5/go.mod h1:zxkCM5TRgJpTap/aZX5YhiQ4ERwgbUrSQpPVx5lHyVg=
66
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
77
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
88
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
99
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
10+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
1011
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
11-
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
1212
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
13-
github.com/tetratelabs/wazero v1.0.0-pre.8 h1:Ir82PWj79WCppH+9ny73eGY2qv+oCnE3VwMY92cBSyI=
14-
github.com/tetratelabs/wazero v1.0.0-pre.8/go.mod h1:u8wrFmpdrykiFK0DFPiFm5a4+0RzsdmXYVtijBKqUVo=
13+
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
14+
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
15+
github.com/tetratelabs/wazero v1.0.0-rc.2 h1:OA3UUynnoqxrjCQ94mpAtdO4/oMxFQVNL2BXDMOc66Q=
16+
github.com/tetratelabs/wazero v1.0.0-rc.2/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
1517
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1618
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1719
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.01 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.