Skip to content

Commit

Permalink
revert wazero to v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed Mar 24, 2024
1 parent e69bbfd commit 5402e44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion cmd/yokecd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func run(cfg Config) error {
}
defer resp.Body.Close()

if resp.StatusCode >= 400 {
return fmt.Errorf("unexpected status code when fetching %s: %d", flight.Spec.WasmURL, resp.StatusCode)
}

wasm, err := io.ReadAll(resp.Body)
if err != nil {
return err
Expand Down Expand Up @@ -111,7 +115,7 @@ func run(cfg Config) error {
}
}

debug("resources outputted %d", len(resources))
debug("resources: %d", len(resources))

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/jedib0t/go-pretty/v6 v6.5.5
github.com/pmezard/go-difflib v1.0.0
github.com/stretchr/testify v1.9.0
github.com/tetratelabs/wazero v1.7.0
github.com/tetratelabs/wazero v1.6.0
golang.org/x/term v0.18.0
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.14.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tetratelabs/wazero v1.7.0 h1:jg5qPydno59wqjpGrHph81lbtHzTrWzwwtD4cD88+hQ=
github.com/tetratelabs/wazero v1.7.0/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y=
github.com/tetratelabs/wazero v1.6.0 h1:z0H1iikCdP8t+q341xqepY4EWvHEw8Es7tlqiVzlP3g=
github.com/tetratelabs/wazero v1.6.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
Expand Down

0 comments on commit 5402e44

Please sign in to comment.