Skip to content

Commit 31dc4bc

Browse files
author
corda.ilaria@gmail.com
committed
fix tiny.go compliance
1 parent e2a77cf commit 31dc4bc

7 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/actions/libextism/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
- uses: ./.extism-cli/.github/actions/extism-cli
1818
- name: Install
1919
shell: bash
20-
run: sudo extism lib install --version git --github-token "${{ inputs.token }}"
20+
run: sudo extism lib install --version v1.21.0 --github-token "${{ inputs.token }}"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- run: cp go-pdk/go.sum . # Needed to get setup-go to work
2121

2222
- name: Install Go
23-
uses: actions/setup-go@v3
23+
uses: actions/setup-go@v4
2424
with:
2525
cache: true
26-
go-version: '1.21.3'
26+
go-version: '1.23.0'
2727

2828
- name: Install TinyGo
2929
uses: acifani/setup-tinygo@v1.1.0

example/http/tiny_main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
//go:wasmexport http_get
1111
func httpGet() int32 {
12-
// create an HTTP Request (withuot relying on WASI), set headers as needed
12+
// create an HTTP Request (without relying on WASI), set headers as needed
1313
req := pdk.NewHTTPRequest(pdk.MethodGet, "https://jsonplaceholder.typicode.com/todos/1")
1414
req.SetHeader("some-name", "some-value")
1515
req.SetHeader("another", "again")

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/extism/go-pdk
22

3-
go 1.26.1
4-
5-
require github.com/extism/go-pdk/wasi-reactor v0.0.0-20260122165646-35abd9e2ba55
3+
go 1.23.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
github.com/extism/go-pdk/wasi-reactor v0.0.0-20260122165646-35abd9e2ba55 h1:4llAGnP7gEo6719wl4WUocxI4e1kU4G4QP0w25xhZ1Q=
2-
github.com/extism/go-pdk/wasi-reactor v0.0.0-20260122165646-35abd9e2ba55/go.mod h1:WDu1fWWoFToXBPq+vRAnfFROFFdPayxGbiXf8ysq+no=

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.26.1
1+
go 1.23.0
22

33
use (
44
.

wasi-reactor/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/extism/go-pdk/wasi-reactor
22

3-
go 1.26.1
3+
go 1.23.0

0 commit comments

Comments
 (0)