Skip to content

Commit

Permalink
deps: optimization (#67)
Browse files Browse the repository at this point in the history
* Replace karelbilek/wazero-fs-tools with its fork gaukas/wazerofs with a lower minimum Go version requirement
* Downgrade minimum Go version requirement from 1.22.0 to 1.21
* Bump up refraction-networking/wazero to v1.7.1-w for bugfixes and other updates

Signed-off-by: Gaukas Wang <[email protected]>
  • Loading branch information
gaukas authored May 6, 2024
1 parent f420809 commit f72aa2f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 53 deletions.
2 changes: 1 addition & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/tetratelabs/wazero/experimental/sys"
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"

"github.com/karelbilek/wazero-fs-tools/memfs"
"github.com/gaukas/wazerofs/memfs"
expsysfs "github.com/tetratelabs/wazero/experimental/sysfs"
)

Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
module github.com/refraction-networking/water

go 1.22.0
go 1.21

retract (
v0.6.1 // bad submodule
v0.6.0 // bad LICENSE naming
)

replace github.com/tetratelabs/wazero v1.7.0 => github.com/refraction-networking/wazero v1.7.0-w
replace github.com/tetratelabs/wazero => github.com/refraction-networking/wazero v1.7.1-w

require (
github.com/karelbilek/wazero-fs-tools v0.0.0-20240317201741-fc5622f5bd12
github.com/tetratelabs/wazero v1.7.0
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a
github.com/gaukas/wazerofs v0.1.0
github.com/tetratelabs/wazero v1.7.1
google.golang.org/protobuf v1.33.0
)

Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
github.com/blang/vfs v1.0.0 h1:AUZUgulCDzbaNjTRWEP45X7m/J10brAptZpSRKRZBZc=
github.com/blang/vfs v1.0.0/go.mod h1:jjuNUc/IKcRNNWC9NUCvz4fR9PZLPIKxEygtPs/4tSI=
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/karelbilek/wazero-fs-tools v0.0.0-20240317201741-fc5622f5bd12 h1:2BGAdZ5gPGtRgLawYeDR2XTjWoi38kNYVF8vzrESQDw=
github.com/karelbilek/wazero-fs-tools v0.0.0-20240317201741-fc5622f5bd12/go.mod h1:Ed3NLyTuuJ7rNUITSo+wEvMbRLwYjslaE5w8q/UWoEA=
github.com/refraction-networking/wazero v1.7.0-w h1:fFQO1VL+fhpFWIgfZN9FPnWYhf5DTyzwzJijqg/LUm4=
github.com/refraction-networking/wazero v1.7.0-w/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y=
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a h1:Q8/wZp0KX97QFTc2ywcOE0YRjZPVIx+MXInMzdvQqcA=
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08=
github.com/gaukas/wazerofs v0.1.0 h1:wIkW1bAxSnpaaVkQ5LOb1tm1BXdVap3eKjJpVWIqt2E=
github.com/gaukas/wazerofs v0.1.0/go.mod h1:+JECB9Fwt0taPqSgHckG9lmT3tcoVK+9VJozTsq9UlI=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/refraction-networking/wazero v1.7.1-w h1:z7Ty5PsMkJEDBCsn3ELUjceQGBT0FMVGldOSpDK3giQ=
github.com/refraction-networking/wazero v1.7.1-w/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
39 changes: 0 additions & 39 deletions internal/log/slog_alias_old.go

This file was deleted.

0 comments on commit f72aa2f

Please sign in to comment.