diff --git a/Makefile b/Makefile index 9917a6b9..671c1e21 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ main_packages := $(sort $(foreach f,$(dir $(main_sources)),$(if $(findstring ./, go_test_options ?= -timeout 300s -ensureCompilerFastest := -ldflags '-X github.com/tetratelabs/wazero/internal/integration_test/vs.ensureCompilerFastest=true' +ensureCompilerFastest := -ldflags '-X github.com/wasilibs/wazerox/internal/integration_test/vs.ensureCompilerFastest=true' .PHONY: bench bench: @go test -run=NONE -benchmem -bench=. ./internal/engine/compiler/... @@ -320,7 +320,7 @@ define go-build @echo "building $1" @# $(go:go=) removes the trailing 'go', so we can insert cross-build variables @$(go:go=) CGO_ENABLED=0 GOOS=$(call go-os,$1) GOARCH=$(call go-arch,$1) go build \ - -ldflags "-s -w -X github.com/tetratelabs/wazero/internal/version.version=$(VERSION)" \ + -ldflags "-s -w -X github.com/wasilibs/wazerox/internal/version.version=$(VERSION)" \ -o $1 $2 ./cmd/wazero @echo build "ok" endef diff --git a/README.md b/README.md index 0f5549e0..d3f90381 100644 --- a/README.md +++ b/README.md @@ -1,124 +1,29 @@ -This repository contains experimental changes to try with wasilibs code. -Do not use it outside the wasilibs organization. +# wazerox: wazero extended with bleeding-edge features and likely bugs -# wazero: the zero dependency WebAssembly runtime for Go developers +[![WebAssembly Core Specification Test](https://github.com/wasilibs/wazerox/actions/workflows/spectest.yaml/badge.svg)](https://github.com/wasilibs/wazerox/actions/workflows/spectest.yaml) [![Go Reference](https://pkg.go.dev/badge/github.com/wasilibs/wazerox.svg)](https://pkg.go.dev/github.com/wasilibs/wazerox) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![WebAssembly Core Specification Test](https://github.com/tetratelabs/wazero/actions/workflows/spectest.yaml/badge.svg)](https://github.com/tetratelabs/wazero/actions/workflows/spectest.yaml) [![Go Reference](https://pkg.go.dev/badge/github.com/tetratelabs/wazero.svg)](https://pkg.go.dev/github.com/tetratelabs/wazero) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[wazero][18] is a wonderful WebAssembly runtime for Go developers with a priority +on stability. This often means it can take time to add new incubating WebAssembly +features or completely non-standard ones - there is only so much a project can +take on. -WebAssembly is a way to safely run code compiled in other languages. Runtimes -execute WebAssembly Modules (Wasm), which are most often binaries with a `.wasm` -extension. +wazerox is a fork with a priority on running code for the wasilibs organization. +The reality is much existing code out there requires features that are not +supported by current WebAssembly or WASI specifications. wazerox allows wasilibs +to continue to provide wrappers with zero usage of cgo. -wazero is a WebAssembly Core Specification [1.0][1] and [2.0][2] compliant -runtime written in Go. It has *zero dependencies*, and doesn't rely on CGO. -This means you can run applications in other languages and still keep cross -compilation. +The additions to wazero should be considered mostly be an implementation detail +of wasilibs libraries. If you have code that requires these extensions to execute, +it is OK to try wazerox, but do expect bugs and best-effort or non-existing support. +It is never a good idea to try this library before trying wazero and see if it +supports your binary, if it does, use wazero. -Import wazero and extend your Go application with code written in any language! +Current extensions include: -## Example +- [WebAssembly Threads][19] +- Stack checkpoint/restore for [wasix][20] exception handling -The best way to learn wazero is by trying one of our [examples](examples/README.md). The -most [basic example](examples/basic) extends a Go application with an addition -function defined in WebAssembly. - -## Runtime - -There are two runtime configurations supported in wazero: _Compiler_ is default: - -By default, ex `wazero.NewRuntime(ctx)`, the Compiler is used if supported. You -can also force the interpreter like so: -```go -r := wazero.NewRuntimeWithConfig(ctx, wazero.NewRuntimeConfigInterpreter()) -``` - -### Interpreter -Interpreter is a naive interpreter-based implementation of Wasm virtual -machine. Its implementation doesn't have any platform (GOARCH, GOOS) specific -code, therefore _interpreter_ can be used for any compilation target available -for Go (such as `riscv64`). - -### Compiler -Compiler compiles WebAssembly modules into machine code ahead of time (AOT), -during `Runtime.CompileModule`. This means your WebAssembly functions execute -natively at runtime. Compiler is faster than Interpreter, often by order of -magnitude (10x) or more. This is done without host-specific dependencies. - -If interested, check out the [RATIONALE.md][8] and help us optimize further! - -### Conformance - -Both runtimes pass WebAssembly Core [1.0][7] and [2.0][14] specification tests -on supported platforms: - -| Runtime | Usage | amd64 | arm64 | others | -|:-----------:|:--------------------------------------:|:-----:|:-----:|:------:| -| Interpreter | `wazero.NewRuntimeConfigInterpreter()` | ✅ | ✅ | ✅ | -| Compiler | `wazero.NewRuntimeConfigCompiler()` | ✅ | ✅ | ❌ | - -## Support Policy - -The below support policy focuses on compatability concerns of those embedding -wazero into their Go applications. - -### wazero - -wazero's [1.0 release][15] happened in March 2023, and is [in use][16] by many -projects and production sites. - -We offer an API stability promise with semantic versioning. In other words, we -promise to not break any exported function signature without incrementing the -major version. This does not mean no innovation: New features and behaviors -happen with a minor version increment, e.g. 1.0.11 to 1.2.0. We also fix bugs -or change internal details with a patch version, e.g. 1.0.0 to 1.0.1. - -You can get the latest version of wazero like this. -```bash -go get github.com/tetratelabs/wazero@latest -``` - -Please give us a [star][17] if you end up using wazero! - -### Go - -wazero has no dependencies except Go, so the only source of conflict in your -project's use of wazero is the Go version. - -wazero follows the same version policy as Go's [Release Policy][10]: two -versions. wazero will ensure these versions work and bugs are valid if there's -an issue with a current Go version. - -Additionally, wazero intentionally delays usage of language or standard library -features one additional version. For example, when Go 1.29 is released, wazero -can use language features or standard libraries added in 1.27. This is a -convenience for embedders who have a slower version policy than Go. However, -only supported Go versions may be used to raise support issues. - -### Platform - -wazero has two runtime modes: Interpreter and Compiler. The only supported operating -systems are ones we test, but that doesn't necessarily mean other operating -system versions won't work. - -We currently test Linux (Ubuntu and scratch), MacOS and Windows as packaged by -[GitHub Actions][11], as well compilation of 32-bit Linux and 64-bit FreeBSD. - -* Interpreter - * Linux is tested on amd64 (native) as well arm64 and riscv64 via emulation. - * MacOS and Windows are only tested on amd64. -* Compiler - * Linux is tested on amd64 (native) as well arm64 via emulation. - * MacOS and Windows are only tested on amd64. - -wazero has no dependencies and doesn't require CGO. This means it can also be -embedded in an application that doesn't use an operating system. This is a main -differentiator between wazero and alternatives. - -We verify zero dependencies by running tests in Docker's [scratch image][12]. -This approach ensures compatibility with any parent image. - ------ -wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or other countries +For further details on the runtime, read about [wazero][18]. [1]: https://www.w3.org/TR/2019/REC-wasm-core-1-20191205/ [2]: https://www.w3.org/TR/2022/WD-wasm-core-2-20220419/ @@ -127,7 +32,7 @@ wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or [6]: https://pkg.go.dev/golang.org/x/sys/unix [7]: https://github.com/WebAssembly/spec/tree/wg-1.0/test/core [8]: internal/engine/compiler/RATIONALE.md -[9]: https://github.com/tetratelabs/wazero/issues/506 +[9]: https://github.com/wasilibs/wazerox/issues/506 [10]: https://go.dev/doc/devel/release [11]: https://github.com/actions/virtual-environments [12]: https://docs.docker.com/develop/develop-images/baseimages/#create-a-simple-parent-image-using-scratch @@ -135,4 +40,7 @@ wazero is a registered trademark of Tetrate.io, Inc. in the United States and/or [14]: https://github.com/WebAssembly/spec/tree/d39195773112a22b245ffbe864bab6d1182ccb06/test/core [15]: https://tetrate.io/blog/introducing-wazero-from-tetrate/ [16]: https://wazero.io/community/users/ -[17]: https://github.com/tetratelabs/wazero/stargazers +[17]: https://github.com/wasilibs/wazerox/stargazers +[18]: https://github.com/testratelabs/wazero +[19]: https://github.com/WebAssembly/threads +[20]: https://wasix.org/ diff --git a/api/features_test.go b/api/features_test.go index fbcbf623..f50a4c53 100644 --- a/api/features_test.go +++ b/api/features_test.go @@ -3,7 +3,7 @@ package api import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestCoreFeatures_ZeroIsInvalid reminds maintainers that a bitset cannot use zero as a flag! diff --git a/api/wasm.go b/api/wasm.go index f611d3ea..f8d5c387 100644 --- a/api/wasm.go +++ b/api/wasm.go @@ -6,7 +6,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/internal/internalapi" ) // ExternType classifies imports and exports with their respective types. diff --git a/api/wasm_test.go b/api/wasm_test.go index ad2c4254..b6bd8d82 100644 --- a/api/wasm_test.go +++ b/api/wasm_test.go @@ -6,7 +6,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestExternTypeName(t *testing.T) { diff --git a/builder.go b/builder.go index f64afabd..155f9cee 100644 --- a/builder.go +++ b/builder.go @@ -3,8 +3,8 @@ package wazero import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // HostFunctionBuilder defines a host function (in Go), so that a diff --git a/builder_test.go b/builder_test.go index 2e80fe48..6c81e032 100644 --- a/builder_test.go +++ b/builder_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestNewHostModuleBuilder_Compile only covers a few scenarios to avoid duplicating tests in internal/wasm/host_test.go diff --git a/cache.go b/cache.go index 2d1b4e3b..4a778971 100644 --- a/cache.go +++ b/cache.go @@ -10,10 +10,10 @@ import ( goruntime "runtime" "sync" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" ) // CompilationCache reduces time spent compiling (Runtime.CompileModule) the same wasm module. diff --git a/cache_example_test.go b/cache_example_test.go index e40754cc..49b66a19 100644 --- a/cache_example_test.go +++ b/cache_example_test.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) // This is a basic example of using the file system compilation cache via wazero.NewCompilationCacheWithDir. diff --git a/cache_test.go b/cache_test.go index 628adff9..de05145c 100644 --- a/cache_test.go +++ b/cache_test.go @@ -9,9 +9,9 @@ import ( goruntime "runtime" "testing" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) //go:embed internal/integration_test/vs/testdata/fac.wasm diff --git a/cmd/wazero/Dockerfile b/cmd/wazero/Dockerfile index 7b695ee2..6c472285 100644 --- a/cmd/wazero/Dockerfile +++ b/cmd/wazero/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --no-cache git WORKDIR /build # wazero doesn't publish a Docker image or binary, yet, so build on on demand. -RUN git clone --depth 1 https://github.com/tetratelabs/wazero.git \ +RUN git clone --depth 1 https://github.com/wasilibs/wazerox.git \ && (cd wazero; go build -o wazero -ldflags "-w -s" ./cmd/wazero) # wazero has no dependencies, so it can run on scratch diff --git a/cmd/wazero/wazero.go b/cmd/wazero/wazero.go index b92a910a..094a350f 100644 --- a/cmd/wazero/wazero.go +++ b/cmd/wazero/wazero.go @@ -15,18 +15,18 @@ import ( "strings" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/gojs" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/experimental/sysfs" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/platform" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/gojs" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/experimental/sysfs" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/platform" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/sys" ) func main() { diff --git a/cmd/wazero/wazero_test.go b/cmd/wazero/wazero_test.go index c57799de..2dcb07b1 100644 --- a/cmd/wazero/wazero_test.go +++ b/cmd/wazero/wazero_test.go @@ -14,14 +14,14 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/sys" ) //go:embed testdata/infinite_loop.wasm diff --git a/config.go b/config.go index 70219b05..c4074d8e 100644 --- a/config.go +++ b/config.go @@ -10,17 +10,17 @@ import ( "net" "time" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/engine/compiler" - "github.com/tetratelabs/wazero/internal/engine/interpreter" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - internalsock "github.com/tetratelabs/wazero/internal/sock" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/engine/compiler" + "github.com/wasilibs/wazerox/internal/engine/interpreter" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + internalsock "github.com/wasilibs/wazerox/internal/sock" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // RuntimeConfig controls runtime behavior, with the default implementation as diff --git a/config_example_test.go b/config_example_test.go index c93cef89..a5a3af13 100644 --- a/config_example_test.go +++ b/config_example_test.go @@ -5,8 +5,8 @@ import ( _ "embed" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // This is a basic example of retrieving custom sections using RuntimeConfig.WithCustomSections. diff --git a/config_test.go b/config_test.go index 8b73dd7d..ac26877a 100644 --- a/config_test.go +++ b/config_test.go @@ -7,16 +7,16 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) func TestRuntimeConfig(t *testing.T) { diff --git a/context_done_example_test.go b/context_done_example_test.go index 76a33847..b6f32dc5 100644 --- a/context_done_example_test.go +++ b/context_done_example_test.go @@ -7,7 +7,7 @@ import ( "log" "time" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) // infiniteLoopWasm exports a function named "infinite_loop" that never exits. diff --git a/example_test.go b/example_test.go index 033e4947..28cd9727 100644 --- a/example_test.go +++ b/example_test.go @@ -6,8 +6,8 @@ import ( "fmt" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // addWasm was generated by the following: diff --git a/examples/allocation/rust/greet.go b/examples/allocation/rust/greet.go index 3d19eec3..13f875af 100644 --- a/examples/allocation/rust/greet.go +++ b/examples/allocation/rust/greet.go @@ -7,8 +7,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // greetWasm was compiled using `cargo build --release --target wasm32-unknown-unknown` diff --git a/examples/allocation/rust/greet_test.go b/examples/allocation/rust/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/rust/greet_test.go +++ b/examples/allocation/rust/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/allocation/tinygo/greet.go b/examples/allocation/tinygo/greet.go index 22d76d64..7f619e54 100644 --- a/examples/allocation/tinygo/greet.go +++ b/examples/allocation/tinygo/greet.go @@ -7,9 +7,9 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // greetWasm was compiled using `tinygo build -o greet.wasm -scheduler=none --no-debug -target=wasi greet.go` diff --git a/examples/allocation/tinygo/greet_test.go b/examples/allocation/tinygo/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/tinygo/greet_test.go +++ b/examples/allocation/tinygo/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/allocation/zig/greet.go b/examples/allocation/zig/greet.go index 467dc8e0..4afee686 100644 --- a/examples/allocation/zig/greet.go +++ b/examples/allocation/zig/greet.go @@ -8,8 +8,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // greetWasm was compiled using `zig build` diff --git a/examples/allocation/zig/greet_test.go b/examples/allocation/zig/greet_test.go index 4a944c86..1164e296 100644 --- a/examples/allocation/zig/greet_test.go +++ b/examples/allocation/zig/greet_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/basic/add.go b/examples/basic/add.go index 93658e9a..eadbbc51 100644 --- a/examples/basic/add.go +++ b/examples/basic/add.go @@ -9,8 +9,8 @@ import ( "log" "strconv" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // addWasm was generated by the following: diff --git a/examples/basic/add_test.go b/examples/basic/add_test.go index 49607db8..69ea364c 100644 --- a/examples/basic/add_test.go +++ b/examples/basic/add_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/cli/cli_test.go b/examples/cli/cli_test.go index fde2c345..c51c66d5 100644 --- a/examples/cli/cli_test.go +++ b/examples/cli/cli_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) //go:embed testdata/cli.wasm diff --git a/examples/concurrent-instantiation/main.go b/examples/concurrent-instantiation/main.go index ee0baa9a..684a61b4 100644 --- a/examples/concurrent-instantiation/main.go +++ b/examples/concurrent-instantiation/main.go @@ -7,7 +7,7 @@ import ( "log" "sync" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) // addWasm was generated by the following: diff --git a/examples/concurrent-instantiation/main_test.go b/examples/concurrent-instantiation/main_test.go index 87eda718..6511abd8 100644 --- a/examples/concurrent-instantiation/main_test.go +++ b/examples/concurrent-instantiation/main_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/import-go/age-calculator.go b/examples/import-go/age-calculator.go index d5bbf0cf..b7ad6477 100644 --- a/examples/import-go/age-calculator.go +++ b/examples/import-go/age-calculator.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) // ageCalculatorWasm was generated by the following: diff --git a/examples/import-go/age-calculator_test.go b/examples/import-go/age-calculator_test.go index 60bb635b..a82ecfb4 100644 --- a/examples/import-go/age-calculator_test.go +++ b/examples/import-go/age-calculator_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/multiple-results/multiple-results.go b/examples/multiple-results/multiple-results.go index 91b9a969..8ce54e84 100644 --- a/examples/multiple-results/multiple-results.go +++ b/examples/multiple-results/multiple-results.go @@ -6,8 +6,8 @@ import ( "fmt" "log" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // main implements functions with multiple returns values, using both an diff --git a/examples/multiple-results/multiple-results_test.go b/examples/multiple-results/multiple-results_test.go index 8f4a4bf0..d0a16ada 100644 --- a/examples/multiple-results/multiple-results_test.go +++ b/examples/multiple-results/multiple-results_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/examples/multiple-runtimes/counter.go b/examples/multiple-runtimes/counter.go index 3bfafdee..c892f1a0 100644 --- a/examples/multiple-runtimes/counter.go +++ b/examples/multiple-runtimes/counter.go @@ -7,8 +7,8 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" ) // counterWasm was generated by the following: diff --git a/examples/multiple-runtimes/counter_test.go b/examples/multiple-runtimes/counter_test.go index 19909401..f3a175b3 100644 --- a/examples/multiple-runtimes/counter_test.go +++ b/examples/multiple-runtimes/counter_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/experimental/close.go b/experimental/close.go index 1c37e8c0..bd43b65d 100644 --- a/experimental/close.go +++ b/experimental/close.go @@ -3,7 +3,7 @@ package experimental import ( "context" - "github.com/tetratelabs/wazero/internal/close" + "github.com/wasilibs/wazerox/internal/close" ) // CloseNotifier is a notification hook, invoked when a module is closed. diff --git a/experimental/close_example_test.go b/experimental/close_example_test.go index 59eb08e8..56c54521 100644 --- a/experimental/close_example_test.go +++ b/experimental/close_example_test.go @@ -3,7 +3,7 @@ package experimental_test import ( "context" - "github.com/tetratelabs/wazero/experimental" + "github.com/wasilibs/wazerox/experimental" ) var ctx context.Context diff --git a/experimental/close_test.go b/experimental/close_test.go index 1fe9d8e3..ef3f0751 100644 --- a/experimental/close_test.go +++ b/experimental/close_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/close" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/close" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/experimental.go b/experimental/experimental.go index 63fd564d..890b3ea2 100644 --- a/experimental/experimental.go +++ b/experimental/experimental.go @@ -4,7 +4,7 @@ package experimental import ( - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // InternalModule is an api.Module that exposes additional diff --git a/experimental/features.go b/experimental/features.go index 964c201b..87403ab2 100644 --- a/experimental/features.go +++ b/experimental/features.go @@ -1,6 +1,6 @@ package experimental -import "github.com/tetratelabs/wazero/api" +import "github.com/wasilibs/wazerox/api" // CoreFeaturesThreads enables threads instructions ("threads"). // diff --git a/experimental/features_example_test.go b/experimental/features_example_test.go index a720741c..8f376b33 100644 --- a/experimental/features_example_test.go +++ b/experimental/features_example_test.go @@ -8,10 +8,10 @@ import ( "runtime" "sync/atomic" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // pthreadWasm was generated by the following: diff --git a/experimental/gojs/example/cat.go b/experimental/gojs/example/cat.go index fbed5f40..4fd83ede 100644 --- a/experimental/gojs/example/cat.go +++ b/experimental/gojs/example/cat.go @@ -8,8 +8,8 @@ import ( "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental/gojs" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental/gojs" ) // main invokes Wasm compiled via `GOOS=js GOARCH=wasm`, which writes an input diff --git a/experimental/gojs/example/cat_test.go b/experimental/gojs/example/cat_test.go index 76668aff..d2b60df4 100644 --- a/experimental/gojs/example/cat_test.go +++ b/experimental/gojs/example/cat_test.go @@ -7,8 +7,8 @@ import ( "os/exec" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/experimental/gojs/gojs.go b/experimental/gojs/gojs.go index 4bbef6aa..8cbb23d4 100644 --- a/experimental/gojs/gojs.go +++ b/experimental/gojs/gojs.go @@ -17,12 +17,12 @@ import ( "context" "errors" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs" - internalconfig "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/run" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs" + internalconfig "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/run" + "github.com/wasilibs/wazerox/internal/wasm" ) // MustInstantiate calls Instantiate or panics on error. diff --git a/experimental/listener.go b/experimental/listener.go index 64d98e90..9753332f 100644 --- a/experimental/listener.go +++ b/experimental/listener.go @@ -3,7 +3,7 @@ package experimental import ( "context" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // StackIterator allows iterating on each function of the call stack, starting diff --git a/experimental/listener_example_test.go b/experimental/listener_example_test.go index 57d346cc..c56950bc 100644 --- a/experimental/listener_example_test.go +++ b/experimental/listener_example_test.go @@ -7,11 +7,11 @@ import ( "log" "sort" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/wasm" ) // listenerWasm was generated by the following: diff --git a/experimental/listener_test.go b/experimental/listener_test.go index c634451b..f271bdb1 100644 --- a/experimental/listener_test.go +++ b/experimental/listener_test.go @@ -5,13 +5,13 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // compile-time check to ensure recorder implements FunctionListenerFactory diff --git a/experimental/logging/log_listener.go b/experimental/logging/log_listener.go index 04e6d7a4..bcd9a148 100644 --- a/experimental/logging/log_listener.go +++ b/experimental/logging/log_listener.go @@ -5,13 +5,13 @@ import ( "context" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - aslogging "github.com/tetratelabs/wazero/internal/assemblyscript/logging" - gologging "github.com/tetratelabs/wazero/internal/gojs/logging" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/wasip1" - wasilogging "github.com/tetratelabs/wazero/internal/wasip1/logging" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + aslogging "github.com/wasilibs/wazerox/internal/assemblyscript/logging" + gologging "github.com/wasilibs/wazerox/internal/gojs/logging" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/wasip1" + wasilogging "github.com/wasilibs/wazerox/internal/wasip1/logging" ) type Writer interface { diff --git a/experimental/logging/log_listener_example_test.go b/experimental/logging/log_listener_example_test.go index 5109c15e..893df27f 100644 --- a/experimental/logging/log_listener_example_test.go +++ b/experimental/logging/log_listener_example_test.go @@ -6,10 +6,10 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) // listenerWasm was generated by the following: diff --git a/experimental/logging/log_listener_test.go b/experimental/logging/log_listener_test.go index 284cbb94..3144813a 100644 --- a/experimental/logging/log_listener_test.go +++ b/experimental/logging/log_listener_test.go @@ -6,13 +6,13 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/require" - wasi "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/require" + wasi "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/sock/sock.go b/experimental/sock/sock.go index b39c8891..0b8395e4 100644 --- a/experimental/sock/sock.go +++ b/experimental/sock/sock.go @@ -3,7 +3,7 @@ package sock import ( "context" - "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/internal/sock" ) // Config configures the host to open TCP sockets and allows guest access to diff --git a/experimental/sock/sock_test.go b/experimental/sock/sock_test.go index d81be2d3..9dde9ed0 100644 --- a/experimental/sock/sock_test.go +++ b/experimental/sock/sock_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental/sock" - internalsock "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sock" + internalsock "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/experimental/sys/dir.go b/experimental/sys/dir.go index 0b997cb8..965ac9e2 100644 --- a/experimental/sys/dir.go +++ b/experimental/sys/dir.go @@ -4,7 +4,7 @@ import ( "fmt" "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // FileType is fs.FileMode masked on fs.ModeType. For example, zero is a diff --git a/experimental/sys/file.go b/experimental/sys/file.go index f8f2e5b1..838a4f4a 100644 --- a/experimental/sys/file.go +++ b/experimental/sys/file.go @@ -1,6 +1,6 @@ package sys -import "github.com/tetratelabs/wazero/sys" +import "github.com/wasilibs/wazerox/sys" // File is a writeable fs.File bridge backed by syscall functions needed for ABI // including WASI and runtime.GOOS=js. diff --git a/experimental/sys/fs.go b/experimental/sys/fs.go index 1ce99cef..f9fa5063 100644 --- a/experimental/sys/fs.go +++ b/experimental/sys/fs.go @@ -3,7 +3,7 @@ package sys import ( "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // FS is a writeable fs.FS bridge backed by syscall functions needed for ABI diff --git a/experimental/sys/unimplemented.go b/experimental/sys/unimplemented.go index d853d9e8..383beba8 100644 --- a/experimental/sys/unimplemented.go +++ b/experimental/sys/unimplemented.go @@ -3,7 +3,7 @@ package sys import ( "io/fs" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) // UnimplementedFS is an FS that returns ENOSYS for all functions, diff --git a/experimental/sysfs/config.go b/experimental/sysfs/config.go index a1609119..543d3ccf 100644 --- a/experimental/sysfs/config.go +++ b/experimental/sysfs/config.go @@ -1,8 +1,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + wazero "github.com/wasilibs/wazerox" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) // FSConfig extends wazero.FSConfig, allowing access to the experimental diff --git a/experimental/sysfs/config_example_test.go b/experimental/sysfs/config_example_test.go index 6c54a449..993b29e0 100644 --- a/experimental/sysfs/config_example_test.go +++ b/experimental/sysfs/config_example_test.go @@ -4,8 +4,8 @@ import ( "io/fs" "testing/fstest" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental/sysfs" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental/sysfs" ) var moduleConfig wazero.ModuleConfig diff --git a/experimental/sysfs/sysfs.go b/experimental/sysfs/sysfs.go index a5d90f7e..b19d6dc8 100644 --- a/experimental/sysfs/sysfs.go +++ b/experimental/sysfs/sysfs.go @@ -8,8 +8,8 @@ package sysfs import ( - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sysfs" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sysfs" ) // AdaptFS adapts the input to sys.FS. Use DirFS instead of adapting an diff --git a/experimental/table/lookup.go b/experimental/table/lookup.go index 7f144401..5c5f5485 100644 --- a/experimental/table/lookup.go +++ b/experimental/table/lookup.go @@ -1,8 +1,8 @@ package table import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // LookupFunction tries to get an api.Function from the table instance specified by `tableIndex` and `tableOffset` in the diff --git a/experimental/table/lookup_test.go b/experimental/table/lookup_test.go index 26825ef5..5024c9c7 100644 --- a/experimental/table/lookup_test.go +++ b/experimental/table/lookup_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/table" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/table" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestLookupFunction(t *testing.T) { diff --git a/experimental/wazerotest/wazerotest.go b/experimental/wazerotest/wazerotest.go index bfbddf78..3ea1f8d2 100644 --- a/experimental/wazerotest/wazerotest.go +++ b/experimental/wazerotest/wazerotest.go @@ -11,9 +11,9 @@ import ( "sync" "sync/atomic" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/experimental/wazerotest/wazerotest_test.go b/experimental/wazerotest/wazerotest_test.go index 39f280aa..141fc338 100644 --- a/experimental/wazerotest/wazerotest_test.go +++ b/experimental/wazerotest/wazerotest_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) func TestNewFunction(t *testing.T) { diff --git a/fsconfig.go b/fsconfig.go index c28909e1..3055c62b 100644 --- a/fsconfig.go +++ b/fsconfig.go @@ -3,9 +3,9 @@ package wazero import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" ) // FSConfig configures filesystem paths the embedding host allows the wasm diff --git a/fsconfig_example_test.go b/fsconfig_example_test.go index 882e152b..462a7abb 100644 --- a/fsconfig_example_test.go +++ b/fsconfig_example_test.go @@ -5,7 +5,7 @@ import ( "io/fs" "log" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) //go:embed testdata/index.html diff --git a/fsconfig_test.go b/fsconfig_test.go index d4b6c767..a17b9746 100644 --- a/fsconfig_test.go +++ b/fsconfig_test.go @@ -3,10 +3,10 @@ package wazero import ( "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestFSConfig only tests the cases that change the inputs to sysfs.ValidatePreopens. diff --git a/go.mod b/go.mod index 685fca63..d337137d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tetratelabs/wazero +module github.com/wasilibs/wazerox // Floor Go version of wazero (current - 2) go 1.19 diff --git a/imports/assemblyscript/assemblyscript.go b/imports/assemblyscript/assemblyscript.go index 5cbe605b..f0a980d4 100644 --- a/imports/assemblyscript/assemblyscript.go +++ b/imports/assemblyscript/assemblyscript.go @@ -33,13 +33,13 @@ import ( "strings" "unicode/utf16" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/imports/assemblyscript/assemblyscript_example_test.go b/imports/assemblyscript/assemblyscript_example_test.go index 119a8cbd..1f96407b 100644 --- a/imports/assemblyscript/assemblyscript_example_test.go +++ b/imports/assemblyscript/assemblyscript_example_test.go @@ -4,8 +4,8 @@ import ( "context" _ "embed" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/assemblyscript" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/assemblyscript" ) // This shows how to instantiate AssemblyScript's special imports. diff --git a/imports/assemblyscript/assemblyscript_test.go b/imports/assemblyscript/assemblyscript_test.go index f72a7aa7..7ec3dcaa 100644 --- a/imports/assemblyscript/assemblyscript_test.go +++ b/imports/assemblyscript/assemblyscript_test.go @@ -12,16 +12,16 @@ import ( "testing/iotest" "unicode/utf16" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/imports/assemblyscript/example/assemblyscript.go b/imports/assemblyscript/example/assemblyscript.go index 20bdd40c..f38e6a73 100644 --- a/imports/assemblyscript/example/assemblyscript.go +++ b/imports/assemblyscript/example/assemblyscript.go @@ -8,8 +8,8 @@ import ( "os" "strconv" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/assemblyscript" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/assemblyscript" ) // asWasm compiled using `npm install && npm run build` diff --git a/imports/assemblyscript/example/assemblyscript_test.go b/imports/assemblyscript/example/assemblyscript_test.go index b8d729c4..acf0f9d0 100644 --- a/imports/assemblyscript/example/assemblyscript_test.go +++ b/imports/assemblyscript/example/assemblyscript_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/imports/emscripten/emscripten.go b/imports/emscripten/emscripten.go index 0e1d1f17..c1427b82 100644 --- a/imports/emscripten/emscripten.go +++ b/imports/emscripten/emscripten.go @@ -16,10 +16,10 @@ import ( "context" "strings" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - internal "github.com/tetratelabs/wazero/internal/emscripten" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + internal "github.com/wasilibs/wazerox/internal/emscripten" + "github.com/wasilibs/wazerox/internal/wasm" ) const i32 = wasm.ValueTypeI32 diff --git a/imports/emscripten/emscripten_example_test.go b/imports/emscripten/emscripten_example_test.go index af322fb9..3eb6010d 100644 --- a/imports/emscripten/emscripten_example_test.go +++ b/imports/emscripten/emscripten_example_test.go @@ -4,9 +4,9 @@ import ( "context" _ "embed" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/emscripten" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/emscripten" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" ) //go:embed testdata/invoke.wasm diff --git a/imports/emscripten/emscripten_test.go b/imports/emscripten/emscripten_test.go index 8a5e9bfb..ebe90261 100644 --- a/imports/emscripten/emscripten_test.go +++ b/imports/emscripten/emscripten_test.go @@ -6,15 +6,15 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - internal "github.com/tetratelabs/wazero/internal/emscripten" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + internal "github.com/wasilibs/wazerox/internal/emscripten" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/imports/wasi_snapshot_preview1/args.go b/imports/wasi_snapshot_preview1/args.go index 4c82e95e..6675b1e6 100644 --- a/imports/wasi_snapshot_preview1/args.go +++ b/imports/wasi_snapshot_preview1/args.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // argsGet is the WASI function named ArgsGetName that reads command-line diff --git a/imports/wasi_snapshot_preview1/args_test.go b/imports/wasi_snapshot_preview1/args_test.go index fb30640f..733bfb64 100644 --- a/imports/wasi_snapshot_preview1/args_test.go +++ b/imports/wasi_snapshot_preview1/args_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_argsGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/clock.go b/imports/wasi_snapshot_preview1/clock.go index 31af9107..5950b022 100644 --- a/imports/wasi_snapshot_preview1/clock.go +++ b/imports/wasi_snapshot_preview1/clock.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // clockResGet is the WASI function named ClockResGetName that returns the diff --git a/imports/wasi_snapshot_preview1/clock_test.go b/imports/wasi_snapshot_preview1/clock_test.go index 87879da3..87b9ccb4 100644 --- a/imports/wasi_snapshot_preview1/clock_test.go +++ b/imports/wasi_snapshot_preview1/clock_test.go @@ -4,9 +4,9 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_clockResGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/environ.go b/imports/wasi_snapshot_preview1/environ.go index ec8df708..d9c185cd 100644 --- a/imports/wasi_snapshot_preview1/environ.go +++ b/imports/wasi_snapshot_preview1/environ.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // environGet is the WASI function named EnvironGetName that reads diff --git a/imports/wasi_snapshot_preview1/environ_test.go b/imports/wasi_snapshot_preview1/environ_test.go index 0ba8efae..2c3a949f 100644 --- a/imports/wasi_snapshot_preview1/environ_test.go +++ b/imports/wasi_snapshot_preview1/environ_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_environGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/example/cat.go b/imports/wasi_snapshot_preview1/example/cat.go index d4bab06c..9e541e7f 100644 --- a/imports/wasi_snapshot_preview1/example/cat.go +++ b/imports/wasi_snapshot_preview1/example/cat.go @@ -8,9 +8,9 @@ import ( "log" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/sys" ) // catFS is an embedded filesystem limited to test.txt diff --git a/imports/wasi_snapshot_preview1/example/cat_test.go b/imports/wasi_snapshot_preview1/example/cat_test.go index 5e68587d..bbb784b5 100644 --- a/imports/wasi_snapshot_preview1/example/cat_test.go +++ b/imports/wasi_snapshot_preview1/example/cat_test.go @@ -10,8 +10,8 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/testing/maintester" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/maintester" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_main ensures the following will work: diff --git a/imports/wasi_snapshot_preview1/example_test.go b/imports/wasi_snapshot_preview1/example_test.go index 3677a105..26c75455 100644 --- a/imports/wasi_snapshot_preview1/example_test.go +++ b/imports/wasi_snapshot_preview1/example_test.go @@ -6,9 +6,9 @@ import ( "fmt" "os" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/sys" ) // exitOnStartWasm was generated by the following: diff --git a/imports/wasi_snapshot_preview1/fs.go b/imports/wasi_snapshot_preview1/fs.go index 9d28ae17..1c90c744 100644 --- a/imports/wasi_snapshot_preview1/fs.go +++ b/imports/wasi_snapshot_preview1/fs.go @@ -9,13 +9,13 @@ import ( "strings" "unsafe" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) // fdAdvise is the WASI function named FdAdviseName which provides file diff --git a/imports/wasi_snapshot_preview1/fs_test.go b/imports/wasi_snapshot_preview1/fs_test.go index fc23e897..2c34f0e0 100644 --- a/imports/wasi_snapshot_preview1/fs_test.go +++ b/imports/wasi_snapshot_preview1/fs_test.go @@ -14,19 +14,19 @@ import ( gofstest "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) func Test_fdAdvise(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/fs_unit_test.go b/imports/wasi_snapshot_preview1/fs_unit_test.go index cea9e729..7de41a47 100644 --- a/imports/wasi_snapshot_preview1/fs_unit_test.go +++ b/imports/wasi_snapshot_preview1/fs_unit_test.go @@ -4,12 +4,12 @@ import ( "os" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_maxDirents(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/poll.go b/imports/wasi_snapshot_preview1/poll.go index d09f3024..6d7c3d36 100644 --- a/imports/wasi_snapshot_preview1/poll.go +++ b/imports/wasi_snapshot_preview1/poll.go @@ -4,12 +4,12 @@ import ( "context" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // pollOneoff is the WASI function named PollOneoffName that concurrently diff --git a/imports/wasi_snapshot_preview1/poll_test.go b/imports/wasi_snapshot_preview1/poll_test.go index a5357e79..ce8df2fc 100644 --- a/imports/wasi_snapshot_preview1/poll_test.go +++ b/imports/wasi_snapshot_preview1/poll_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - sysapi "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + sysapi "github.com/wasilibs/wazerox/sys" ) func Test_pollOneoff(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/proc.go b/imports/wasi_snapshot_preview1/proc.go index cb0ab487..db11608d 100644 --- a/imports/wasi_snapshot_preview1/proc.go +++ b/imports/wasi_snapshot_preview1/proc.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) // procExit is the WASI function named ProcExitName that terminates the diff --git a/imports/wasi_snapshot_preview1/proc_test.go b/imports/wasi_snapshot_preview1/proc_test.go index 074c091e..39e841f2 100644 --- a/imports/wasi_snapshot_preview1/proc_test.go +++ b/imports/wasi_snapshot_preview1/proc_test.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/sys" ) func Test_procExit(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/random.go b/imports/wasi_snapshot_preview1/random.go index e4d7ccee..700d7111 100644 --- a/imports/wasi_snapshot_preview1/random.go +++ b/imports/wasi_snapshot_preview1/random.go @@ -4,10 +4,10 @@ import ( "context" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // randomGet is the WASI function named RandomGetName which writes random diff --git a/imports/wasi_snapshot_preview1/random_test.go b/imports/wasi_snapshot_preview1/random_test.go index 46170a94..d06aff6b 100644 --- a/imports/wasi_snapshot_preview1/random_test.go +++ b/imports/wasi_snapshot_preview1/random_test.go @@ -7,9 +7,9 @@ import ( "testing" "testing/iotest" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_randomGet(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sched.go b/imports/wasi_snapshot_preview1/sched.go index 86748e6d..36e4506e 100644 --- a/imports/wasi_snapshot_preview1/sched.go +++ b/imports/wasi_snapshot_preview1/sched.go @@ -3,10 +3,10 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // schedYield is the WASI function named SchedYieldName which temporarily diff --git a/imports/wasi_snapshot_preview1/sched_test.go b/imports/wasi_snapshot_preview1/sched_test.go index 5c983546..aa02d553 100644 --- a/imports/wasi_snapshot_preview1/sched_test.go +++ b/imports/wasi_snapshot_preview1/sched_test.go @@ -3,9 +3,9 @@ package wasi_snapshot_preview1_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_schedYield(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sock.go b/imports/wasi_snapshot_preview1/sock.go index 756c0d39..95ecae6c 100644 --- a/imports/wasi_snapshot_preview1/sock.go +++ b/imports/wasi_snapshot_preview1/sock.go @@ -3,12 +3,12 @@ package wasi_snapshot_preview1 import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // sockAccept is the WASI function named SockAcceptName which accepts a new diff --git a/imports/wasi_snapshot_preview1/sock_test.go b/imports/wasi_snapshot_preview1/sock_test.go index 2bafbd37..7f535333 100644 --- a/imports/wasi_snapshot_preview1/sock_test.go +++ b/imports/wasi_snapshot_preview1/sock_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsock "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsock "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_sockAccept(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/sock_unit_test.go b/imports/wasi_snapshot_preview1/sock_unit_test.go index 12f14bf5..4dd4334b 100644 --- a/imports/wasi_snapshot_preview1/sock_unit_test.go +++ b/imports/wasi_snapshot_preview1/sock_unit_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" ) func Test_getExtendedWasiFiletype(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/usage_test.go b/imports/wasi_snapshot_preview1/usage_test.go index 88e25e87..61c72af2 100644 --- a/imports/wasi_snapshot_preview1/usage_test.go +++ b/imports/wasi_snapshot_preview1/usage_test.go @@ -6,10 +6,10 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" ) // pringArgsWasm was compiled from testdata/wasi_arg.wat diff --git a/imports/wasi_snapshot_preview1/wasi.go b/imports/wasi_snapshot_preview1/wasi.go index 4ef41d50..ee345b21 100644 --- a/imports/wasi_snapshot_preview1/wasi.go +++ b/imports/wasi_snapshot_preview1/wasi.go @@ -20,11 +20,11 @@ import ( "context" "encoding/binary" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // ModuleName is the module name WASI functions are exported into. diff --git a/imports/wasi_snapshot_preview1/wasi_bench_test.go b/imports/wasi_snapshot_preview1/wasi_bench_test.go index ac8ce748..fdb2200a 100644 --- a/imports/wasi_snapshot_preview1/wasi_bench_test.go +++ b/imports/wasi_snapshot_preview1/wasi_bench_test.go @@ -6,14 +6,14 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) // configArgsEnviron ensures the result data are the same between args and ENV. diff --git a/imports/wasi_snapshot_preview1/wasi_stdlib_test.go b/imports/wasi_snapshot_preview1/wasi_stdlib_test.go index 93ac1a56..d2c65384 100644 --- a/imports/wasi_snapshot_preview1/wasi_stdlib_test.go +++ b/imports/wasi_snapshot_preview1/wasi_stdlib_test.go @@ -17,15 +17,15 @@ import ( gofstest "testing/fstest" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - experimentalsock "github.com/tetratelabs/wazero/experimental/sock" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/fstest" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + experimentalsock "github.com/wasilibs/wazerox/experimental/sock" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/fstest" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) // sleepALittle directly slows down test execution. So, use this sparingly and diff --git a/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go b/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go index 53195d5a..3fc45b6a 100644 --- a/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go +++ b/imports/wasi_snapshot_preview1/wasi_stdlib_unix_test.go @@ -14,11 +14,11 @@ import ( "syscall" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NonblockingFile(t *testing.T) { diff --git a/imports/wasi_snapshot_preview1/wasi_test.go b/imports/wasi_snapshot_preview1/wasi_test.go index 5cc50ba9..1849a519 100644 --- a/imports/wasi_snapshot_preview1/wasi_test.go +++ b/imports/wasi_snapshot_preview1/wasi_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/sys" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/asm/amd64/assembler.go b/internal/asm/amd64/assembler.go index 015f3eee..88acf07f 100644 --- a/internal/asm/amd64/assembler.go +++ b/internal/asm/amd64/assembler.go @@ -1,7 +1,7 @@ package amd64 import ( - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Assembler is the interface used by amd64 compiler. diff --git a/internal/asm/amd64/consts.go b/internal/asm/amd64/consts.go index b196c88e..2451d95d 100644 --- a/internal/asm/amd64/consts.go +++ b/internal/asm/amd64/consts.go @@ -3,7 +3,7 @@ package amd64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // AMD64-specific conditional register states. diff --git a/internal/asm/amd64/consts_test.go b/internal/asm/amd64/consts_test.go index 6d9964b3..6553a504 100644 --- a/internal/asm/amd64/consts_test.go +++ b/internal/asm/amd64/consts_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the instruction's name is defined. diff --git a/internal/asm/amd64/impl.go b/internal/asm/amd64/impl.go index 0c81f8c8..abc20cd5 100644 --- a/internal/asm/amd64/impl.go +++ b/internal/asm/amd64/impl.go @@ -6,7 +6,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // nodeImpl implements asm.Node for amd64. diff --git a/internal/asm/amd64/impl_1_test.go b/internal/asm/amd64/impl_1_test.go index b577bd32..735dbdfb 100644 --- a/internal/asm/amd64/impl_1_test.go +++ b/internal/asm/amd64/impl_1_test.go @@ -4,8 +4,8 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodePool_allocNode(t *testing.T) { diff --git a/internal/asm/amd64/impl_2_test.go b/internal/asm/amd64/impl_2_test.go index 8cb49a33..384efbe7 100644 --- a/internal/asm/amd64/impl_2_test.go +++ b/internal/asm/amd64/impl_2_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeNoneToRegister(t *testing.T) { diff --git a/internal/asm/amd64/impl_3_test.go b/internal/asm/amd64/impl_3_test.go index d0db3c86..187344f1 100644 --- a/internal/asm/amd64/impl_3_test.go +++ b/internal/asm/amd64/impl_3_test.go @@ -3,8 +3,8 @@ package amd64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRegisterToMemory(t *testing.T) { diff --git a/internal/asm/amd64/impl_4_test.go b/internal/asm/amd64/impl_4_test.go index a056e4c3..2e09905b 100644 --- a/internal/asm/amd64/impl_4_test.go +++ b/internal/asm/amd64/impl_4_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_encodeConstToRegister(t *testing.T) { diff --git a/internal/asm/amd64/impl_5_test.go b/internal/asm/amd64/impl_5_test.go index bac98753..6cdcfdb0 100644 --- a/internal/asm/amd64/impl_5_test.go +++ b/internal/asm/amd64/impl_5_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeConstToMemory(t *testing.T) { diff --git a/internal/asm/amd64/impl_6_test.go b/internal/asm/amd64/impl_6_test.go index 97dd049a..360452b2 100644 --- a/internal/asm/amd64/impl_6_test.go +++ b/internal/asm/amd64/impl_6_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_Assemble_NOPPadding(t *testing.T) { diff --git a/internal/asm/amd64/impl_7_test.go b/internal/asm/amd64/impl_7_test.go index ed012fcb..addca4f6 100644 --- a/internal/asm/amd64/impl_7_test.go +++ b/internal/asm/amd64/impl_7_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_Assemble_NOPPadding_fusedJumps(t *testing.T) { diff --git a/internal/asm/amd64/impl_memorylocation_test.go b/internal/asm/amd64/impl_memorylocation_test.go index d7acd3ef..db4530ff 100644 --- a/internal/asm/amd64/impl_memorylocation_test.go +++ b/internal/asm/amd64/impl_memorylocation_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodeImpl_GetMemoryLocation_errors(t *testing.T) { diff --git a/internal/asm/amd64/impl_staticconst.go b/internal/asm/amd64/impl_staticconst.go index 17a7f228..1f1fc393 100644 --- a/internal/asm/amd64/impl_staticconst.go +++ b/internal/asm/amd64/impl_staticconst.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // defaultMaxDisplacementForConstantPool is the maximum displacement allowed for literal move instructions which access diff --git a/internal/asm/amd64/impl_staticconst_test.go b/internal/asm/amd64/impl_staticconst_test.go index d253d9aa..64dd4ad2 100644 --- a/internal/asm/amd64/impl_staticconst_test.go +++ b/internal/asm/amd64/impl_staticconst_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_CompileStaticConstToRegister(t *testing.T) { diff --git a/internal/asm/arm64/assembler.go b/internal/asm/arm64/assembler.go index b83c8b99..12468b69 100644 --- a/internal/asm/arm64/assembler.go +++ b/internal/asm/arm64/assembler.go @@ -1,7 +1,7 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Assembler is the interface for arm64 specific assembler. diff --git a/internal/asm/arm64/consts.go b/internal/asm/arm64/consts.go index 3a9e3cf2..837cbccb 100644 --- a/internal/asm/arm64/consts.go +++ b/internal/asm/arm64/consts.go @@ -3,7 +3,7 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // Arm64-specific register states. diff --git a/internal/asm/arm64/consts_test.go b/internal/asm/arm64/consts_test.go index 93410f38..c4f7215d 100644 --- a/internal/asm/arm64/consts_test.go +++ b/internal/asm/arm64/consts_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the instruction's name is defined. diff --git a/internal/asm/arm64/impl.go b/internal/asm/arm64/impl.go index 874dd17e..360955ac 100644 --- a/internal/asm/arm64/impl.go +++ b/internal/asm/arm64/impl.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) type nodeImpl struct { diff --git a/internal/asm/arm64/impl_1_test.go b/internal/asm/arm64/impl_1_test.go index 982444be..6f8c3fe3 100644 --- a/internal/asm/arm64/impl_1_test.go +++ b/internal/asm/arm64/impl_1_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNodePool_allocNode(t *testing.T) { diff --git a/internal/asm/arm64/impl_2_test.go b/internal/asm/arm64/impl_2_test.go index 96771503..dd9d7d37 100644 --- a/internal/asm/arm64/impl_2_test.go +++ b/internal/asm/arm64/impl_2_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeConstToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_3_test.go b/internal/asm/arm64/impl_3_test.go index eefbfbc9..bae3ede9 100644 --- a/internal/asm/arm64/impl_3_test.go +++ b/internal/asm/arm64/impl_3_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeTwoRegistersToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_4_test.go b/internal/asm/arm64/impl_4_test.go index cffb0f99..1a992bc6 100644 --- a/internal/asm/arm64/impl_4_test.go +++ b/internal/asm/arm64/impl_4_test.go @@ -6,8 +6,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_encodeJumpToRegister(t *testing.T) { diff --git a/internal/asm/arm64/impl_5_test.go b/internal/asm/arm64/impl_5_test.go index 74161a82..7fbb4c49 100644 --- a/internal/asm/arm64/impl_5_test.go +++ b/internal/asm/arm64/impl_5_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRegisterToMemory(t *testing.T) { diff --git a/internal/asm/arm64/impl_6_test.go b/internal/asm/arm64/impl_6_test.go index 3157af10..7223292b 100644 --- a/internal/asm/arm64/impl_6_test.go +++ b/internal/asm/arm64/impl_6_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAssemblerImpl_EncodeRelativeJump(t *testing.T) { diff --git a/internal/asm/assembler_test.go b/internal/asm/assembler_test.go index 77993767..d156b3fc 100644 --- a/internal/asm/assembler_test.go +++ b/internal/asm/assembler_test.go @@ -3,7 +3,7 @@ package asm import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNewStaticConstPool(t *testing.T) { diff --git a/internal/asm/buffer.go b/internal/asm/buffer.go index 0476c380..6dd69b1c 100644 --- a/internal/asm/buffer.go +++ b/internal/asm/buffer.go @@ -5,7 +5,7 @@ import ( "fmt" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/internal/platform" ) var zero [16]byte diff --git a/internal/asm/buffer_test.go b/internal/asm/buffer_test.go index 153101b8..e555bf1d 100644 --- a/internal/asm/buffer_test.go +++ b/internal/asm/buffer_test.go @@ -4,8 +4,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCodeSegmentZeroValue(t *testing.T) { diff --git a/internal/assemblyscript/logging/logging.go b/internal/assemblyscript/logging/logging.go index ca59e7af..1130a374 100644 --- a/internal/assemblyscript/logging/logging.go +++ b/internal/assemblyscript/logging/logging.go @@ -1,9 +1,9 @@ package logging import ( - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/logging" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/logging" ) func isProcFunction(fnd api.FunctionDefinition) bool { diff --git a/internal/assemblyscript/logging/logging_test.go b/internal/assemblyscript/logging/logging_test.go index eee82172..420a551d 100644 --- a/internal/assemblyscript/logging/logging_test.go +++ b/internal/assemblyscript/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - . "github.com/tetratelabs/wazero/internal/assemblyscript" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + . "github.com/wasilibs/wazerox/internal/assemblyscript" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/bitpack/offset_array_test.go b/internal/bitpack/offset_array_test.go index f1d187e3..d7a5172c 100644 --- a/internal/bitpack/offset_array_test.go +++ b/internal/bitpack/offset_array_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestOffsetArray(t *testing.T) { diff --git a/internal/descriptor/table_test.go b/internal/descriptor/table_test.go index 9713a27a..ec5dc45d 100644 --- a/internal/descriptor/table_test.go +++ b/internal/descriptor/table_test.go @@ -3,8 +3,8 @@ package descriptor_test import ( "testing" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFileTable(t *testing.T) { diff --git a/internal/emscripten/emscripten.go b/internal/emscripten/emscripten.go index 4492df58..be13f912 100644 --- a/internal/emscripten/emscripten.go +++ b/internal/emscripten/emscripten.go @@ -6,9 +6,9 @@ import ( "fmt" "strconv" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) const FunctionNotifyMemoryGrowth = "emscripten_notify_memory_growth" diff --git a/internal/emscripten/emscripten_test.go b/internal/emscripten/emscripten_test.go index daea7b37..a779dd04 100644 --- a/internal/emscripten/emscripten_test.go +++ b/internal/emscripten/emscripten_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/wazerotest" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/wazerotest" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_callOnPanic(t *testing.T) { diff --git a/internal/engine/compiler/arch.go b/internal/engine/compiler/arch.go index 81b9efc3..96a945e8 100644 --- a/internal/engine/compiler/arch.go +++ b/internal/engine/compiler/arch.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" ) // newArchContext returns a new archContext which is architecture-specific type to be embedded in callEngine. diff --git a/internal/engine/compiler/arch_amd64.go b/internal/engine/compiler/arch_amd64.go index b09a1cab..3114b332 100644 --- a/internal/engine/compiler/arch_amd64.go +++ b/internal/engine/compiler/arch_amd64.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" ) // init initializes variables for the amd64 architecture diff --git a/internal/engine/compiler/arch_arm64.go b/internal/engine/compiler/arch_arm64.go index 4262da61..9f9025c7 100644 --- a/internal/engine/compiler/arch_arm64.go +++ b/internal/engine/compiler/arch_arm64.go @@ -3,8 +3,8 @@ package compiler import ( "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" ) // init initializes variables for the arm64 architecture diff --git a/internal/engine/compiler/arch_arm64_test.go b/internal/engine/compiler/arch_arm64_test.go index 170ace64..6f4fc2dd 100644 --- a/internal/engine/compiler/arch_arm64_test.go +++ b/internal/engine/compiler/arch_arm64_test.go @@ -4,7 +4,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestArchContextOffsetInArm64Engine(t *testing.T) { diff --git a/internal/engine/compiler/arch_other.go b/internal/engine/compiler/arch_other.go index e53ac8df..1b4c2028 100644 --- a/internal/engine/compiler/arch_other.go +++ b/internal/engine/compiler/arch_other.go @@ -6,7 +6,7 @@ import ( "fmt" "runtime" - "github.com/tetratelabs/wazero/internal/asm" + "github.com/wasilibs/wazerox/internal/asm" ) // archContext is empty on an unsupported architecture. diff --git a/internal/engine/compiler/compiler.go b/internal/engine/compiler/compiler.go index 3593df7b..7f2adc60 100644 --- a/internal/engine/compiler/compiler.go +++ b/internal/engine/compiler/compiler.go @@ -1,9 +1,9 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compiler is the interface of architecture-specific native code compiler, diff --git a/internal/engine/compiler/compiler_bench_test.go b/internal/engine/compiler/compiler_bench_test.go index 03c7b793..7296f125 100644 --- a/internal/engine/compiler/compiler_bench_test.go +++ b/internal/engine/compiler/compiler_bench_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func BenchmarkCompiler_compileMemoryCopy(b *testing.B) { diff --git a/internal/engine/compiler/compiler_conditional_save_test.go b/internal/engine/compiler/compiler_conditional_save_test.go index 94869ae8..5c213ba9 100644 --- a/internal/engine/compiler/compiler_conditional_save_test.go +++ b/internal/engine/compiler/compiler_conditional_save_test.go @@ -3,10 +3,10 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestCompiler_conditional_value_saving ensure that saving conditional register works correctly even if there's diff --git a/internal/engine/compiler/compiler_controlflow_test.go b/internal/engine/compiler/compiler_controlflow_test.go index 132a25ec..fa3a1e2b 100644 --- a/internal/engine/compiler/compiler_controlflow_test.go +++ b/internal/engine/compiler/compiler_controlflow_test.go @@ -5,10 +5,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileHostFunction(t *testing.T) { diff --git a/internal/engine/compiler/compiler_conversion_test.go b/internal/engine/compiler/compiler_conversion_test.go index 265f3f32..0908a405 100644 --- a/internal/engine/compiler/compiler_conversion_test.go +++ b/internal/engine/compiler/compiler_conversion_test.go @@ -5,10 +5,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileReinterpret(t *testing.T) { diff --git a/internal/engine/compiler/compiler_drop.go b/internal/engine/compiler/compiler_drop.go index 342cee0e..4558eec8 100644 --- a/internal/engine/compiler/compiler_drop.go +++ b/internal/engine/compiler/compiler_drop.go @@ -1,8 +1,8 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileDropRange adds instruction to drop the values on the target range diff --git a/internal/engine/compiler/compiler_drop_test.go b/internal/engine/compiler/compiler_drop_test.go index 8ebbc5e9..cb48a022 100644 --- a/internal/engine/compiler/compiler_drop_test.go +++ b/internal/engine/compiler/compiler_drop_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func Test_compileDropRange(t *testing.T) { diff --git a/internal/engine/compiler/compiler_global_test.go b/internal/engine/compiler/compiler_global_test.go index 2729c5e6..a7df394d 100644 --- a/internal/engine/compiler/compiler_global_test.go +++ b/internal/engine/compiler/compiler_global_test.go @@ -3,10 +3,10 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileGlobalGet(t *testing.T) { diff --git a/internal/engine/compiler/compiler_initialization_test.go b/internal/engine/compiler/compiler_initialization_test.go index d213c51f..b0d39ec8 100644 --- a/internal/engine/compiler/compiler_initialization_test.go +++ b/internal/engine/compiler/compiler_initialization_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileModuleContextInitialization(t *testing.T) { diff --git a/internal/engine/compiler/compiler_memory_test.go b/internal/engine/compiler/compiler_memory_test.go index ccd440a5..780241b9 100644 --- a/internal/engine/compiler/compiler_memory_test.go +++ b/internal/engine/compiler/compiler_memory_test.go @@ -6,10 +6,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileMemoryGrow(t *testing.T) { diff --git a/internal/engine/compiler/compiler_numeric_test.go b/internal/engine/compiler/compiler_numeric_test.go index 34688b45..4e720a32 100644 --- a/internal/engine/compiler/compiler_numeric_test.go +++ b/internal/engine/compiler/compiler_numeric_test.go @@ -6,11 +6,11 @@ import ( "math/bits" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileConsts(t *testing.T) { diff --git a/internal/engine/compiler/compiler_post1_0_test.go b/internal/engine/compiler/compiler_post1_0_test.go index 7632b354..63dc1c02 100644 --- a/internal/engine/compiler/compiler_post1_0_test.go +++ b/internal/engine/compiler/compiler_post1_0_test.go @@ -6,10 +6,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileSignExtend(t *testing.T) { diff --git a/internal/engine/compiler/compiler_stack_test.go b/internal/engine/compiler/compiler_stack_test.go index 8c8a4394..b0eab616 100644 --- a/internal/engine/compiler/compiler_stack_test.go +++ b/internal/engine/compiler/compiler_stack_test.go @@ -5,10 +5,10 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_releaseRegisterToStack(t *testing.T) { diff --git a/internal/engine/compiler/compiler_test.go b/internal/engine/compiler/compiler_test.go index 653a23d0..1deadb0d 100644 --- a/internal/engine/compiler/compiler_test.go +++ b/internal/engine/compiler/compiler_test.go @@ -8,10 +8,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestMain(m *testing.M) { diff --git a/internal/engine/compiler/compiler_value_location.go b/internal/engine/compiler/compiler_value_location.go index 30036fed..3c54152e 100644 --- a/internal/engine/compiler/compiler_value_location.go +++ b/internal/engine/compiler/compiler_value_location.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/wasm" ) var ( diff --git a/internal/engine/compiler/compiler_value_location_test.go b/internal/engine/compiler/compiler_value_location_test.go index 64710467..4ff78b96 100644 --- a/internal/engine/compiler/compiler_value_location_test.go +++ b/internal/engine/compiler/compiler_value_location_test.go @@ -3,9 +3,9 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_isIntRegister(t *testing.T) { diff --git a/internal/engine/compiler/compiler_vec_test.go b/internal/engine/compiler/compiler_vec_test.go index 946f104b..46c0ecb6 100644 --- a/internal/engine/compiler/compiler_vec_test.go +++ b/internal/engine/compiler/compiler_vec_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) func TestCompiler_compileV128Add(t *testing.T) { diff --git a/internal/engine/compiler/engine.go b/internal/engine/compiler/engine.go index bcf6fb27..492a0468 100644 --- a/internal/engine/compiler/engine.go +++ b/internal/engine/compiler/engine.go @@ -11,18 +11,18 @@ import ( "sync/atomic" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // NOTE: The offset of many of the struct fields defined here are referenced from diff --git a/internal/engine/compiler/engine_bench_test.go b/internal/engine/compiler/engine_bench_test.go index 39bac99e..6511f515 100644 --- a/internal/engine/compiler/engine_bench_test.go +++ b/internal/engine/compiler/engine_bench_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) func BenchmarkCallEngine_builtinFunctionFunctionListener(b *testing.B) { diff --git a/internal/engine/compiler/engine_cache.go b/internal/engine/compiler/engine_cache.go index 204eb1b8..68a3993b 100644 --- a/internal/engine/compiler/engine_cache.go +++ b/internal/engine/compiler/engine_cache.go @@ -7,11 +7,11 @@ import ( "io" "runtime" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) func (e *engine) deleteCompiledModule(module *wasm.Module) { diff --git a/internal/engine/compiler/engine_cache_test.go b/internal/engine/compiler/engine_cache_test.go index c26433a3..fc467865 100644 --- a/internal/engine/compiler/engine_cache_test.go +++ b/internal/engine/compiler/engine_cache_test.go @@ -10,12 +10,12 @@ import ( "testing" "testing/iotest" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) var testVersion = "" diff --git a/internal/engine/compiler/engine_test.go b/internal/engine/compiler/engine_test.go index c68a0586..3ae59fdd 100644 --- a/internal/engine/compiler/engine_test.go +++ b/internal/engine/compiler/engine_test.go @@ -8,12 +8,12 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/bitpack" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/bitpack" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/engine/compiler/impl_amd64.go b/internal/engine/compiler/impl_amd64.go index d2fefde4..b2d6a602 100644 --- a/internal/engine/compiler/impl_amd64.go +++ b/internal/engine/compiler/impl_amd64.go @@ -8,13 +8,13 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) var ( @@ -5042,6 +5042,8 @@ func (c *amd64Compiler) compileAtomicMemoryNotify(o *wazeroir.UnionOperation) er return err } c.compileMemoryAlignmentCheck(reg, 4) + c.assembler.CompileRegisterToRegister(amd64.ADDQ, amd64ReservedRegisterForMemory, reg) + c.assembler.CompileConstToRegister(amd64.ADDQ, -4, reg) // Push address and count back to read in Go c.pushRuntimeValueLocationOnRegister(reg, runtimeValueTypeI64) diff --git a/internal/engine/compiler/impl_amd64_test.go b/internal/engine/compiler/impl_amd64_test.go index 316bfceb..acac9465 100644 --- a/internal/engine/compiler/impl_amd64_test.go +++ b/internal/engine/compiler/impl_amd64_test.go @@ -5,12 +5,12 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestAmd64Compiler_indirectCallWithTargetOnCallingConvReg is the regression test for #526. diff --git a/internal/engine/compiler/impl_arm64.go b/internal/engine/compiler/impl_arm64.go index 26ee0e6b..88aaca02 100644 --- a/internal/engine/compiler/impl_arm64.go +++ b/internal/engine/compiler/impl_arm64.go @@ -9,10 +9,10 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) type arm64Compiler struct { diff --git a/internal/engine/compiler/impl_arm64_test.go b/internal/engine/compiler/impl_arm64_test.go index da59b58f..7856c077 100644 --- a/internal/engine/compiler/impl_arm64_test.go +++ b/internal/engine/compiler/impl_arm64_test.go @@ -4,11 +4,11 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/asm" - arm64 "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + arm64 "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestArm64Compiler_indirectCallWithTargetOnCallingConvReg is the regression test for #526. diff --git a/internal/engine/compiler/impl_vec_amd64.go b/internal/engine/compiler/impl_vec_amd64.go index d6c111db..c12c53b5 100644 --- a/internal/engine/compiler/impl_vec_amd64.go +++ b/internal/engine/compiler/impl_vec_amd64.go @@ -3,9 +3,9 @@ package compiler import ( "errors" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileV128Const implements compiler.compileV128Const for amd64 architecture. diff --git a/internal/engine/compiler/impl_vec_amd64_test.go b/internal/engine/compiler/impl_vec_amd64_test.go index 34b387bf..cb778826 100644 --- a/internal/engine/compiler/impl_vec_amd64_test.go +++ b/internal/engine/compiler/impl_vec_amd64_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/amd64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/amd64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestAmd64Compiler_V128Shuffle_ConstTable_MiddleOfFunction ensures that flushing constant table in the middle of diff --git a/internal/engine/compiler/impl_vec_arm64.go b/internal/engine/compiler/impl_vec_arm64.go index 70aa4a01..83a41171 100644 --- a/internal/engine/compiler/impl_vec_arm64.go +++ b/internal/engine/compiler/impl_vec_arm64.go @@ -1,9 +1,9 @@ package compiler import ( - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // compileV128Const implements compiler.compileV128Const for arm64. diff --git a/internal/engine/compiler/impl_vec_arm64_test.go b/internal/engine/compiler/impl_vec_arm64_test.go index bb600752..ceeb6255 100644 --- a/internal/engine/compiler/impl_vec_arm64_test.go +++ b/internal/engine/compiler/impl_vec_arm64_test.go @@ -4,11 +4,11 @@ import ( "encoding/binary" "testing" - "github.com/tetratelabs/wazero/internal/asm" - "github.com/tetratelabs/wazero/internal/asm/arm64" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/internal/asm" + "github.com/wasilibs/wazerox/internal/asm/arm64" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // TestArm64Compiler_V128Shuffle_ConstTable_MiddleOfFunction ensures that flushing constant table in the middle of diff --git a/internal/engine/interpreter/interpreter.go b/internal/engine/interpreter/interpreter.go index 4281499f..2feee100 100644 --- a/internal/engine/interpreter/interpreter.go +++ b/internal/engine/interpreter/interpreter.go @@ -10,15 +10,15 @@ import ( "sync" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // callStackCeiling is the maximum WebAssembly call frame stack height. This allows wazero to raise diff --git a/internal/engine/interpreter/interpreter_test.go b/internal/engine/interpreter/interpreter_test.go index 13f47af7..82795fed 100644 --- a/internal/engine/interpreter/interpreter_test.go +++ b/internal/engine/interpreter/interpreter_test.go @@ -7,10 +7,10 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wazeroir" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wazeroir" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/engine/wazevo/backend/abi.go b/internal/engine/wazevo/backend/abi.go index 0d1eb4cb..519c9d04 100644 --- a/internal/engine/wazevo/backend/abi.go +++ b/internal/engine/wazevo/backend/abi.go @@ -3,8 +3,8 @@ package backend import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // FunctionABI represents an ABI for the specific target combined with the function signature. diff --git a/internal/engine/wazevo/backend/backend_test.go b/internal/engine/wazevo/backend/backend_test.go index 592e20a8..1267d2e0 100644 --- a/internal/engine/wazevo/backend/backend_test.go +++ b/internal/engine/wazevo/backend/backend_test.go @@ -7,14 +7,14 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64" - "github.com/tetratelabs/wazero/internal/engine/wazevo/frontend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64" + "github.com/wasilibs/wazerox/internal/engine/wazevo/frontend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestMain(m *testing.M) { diff --git a/internal/engine/wazevo/backend/compiler.go b/internal/engine/wazevo/backend/compiler.go index 0dd9cc2a..0eb705c6 100644 --- a/internal/engine/wazevo/backend/compiler.go +++ b/internal/engine/wazevo/backend/compiler.go @@ -5,9 +5,9 @@ import ( "encoding/hex" "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // NewCompiler returns a new Compiler that can generate a machine code. diff --git a/internal/engine/wazevo/backend/compiler_lower.go b/internal/engine/wazevo/backend/compiler_lower.go index 8f513423..777aa320 100644 --- a/internal/engine/wazevo/backend/compiler_lower.go +++ b/internal/engine/wazevo/backend/compiler_lower.go @@ -1,8 +1,8 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // Lower implements Compiler.Lower. diff --git a/internal/engine/wazevo/backend/compiler_lower_test.go b/internal/engine/wazevo/backend/compiler_lower_test.go index bfdc8747..c4643227 100644 --- a/internal/engine/wazevo/backend/compiler_lower_test.go +++ b/internal/engine/wazevo/backend/compiler_lower_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCompiler_lowerBlockArguments(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi.go b/internal/engine/wazevo/backend/isa/arm64/abi.go index f75aa55b..8f61511a 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi.go @@ -1,9 +1,9 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // References: diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go index 0cec5cf5..326b20d0 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go @@ -1,10 +1,10 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // CompileEntryPreamble implements backend.Machine. This assumes `entrypoint` function (in abi_go_entry_arm64.s) passes: diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go index 3c95d9b1..4a35c2d5 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAbiImpl_constructEntryPreamble(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go b/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go index e09abea5..26fcbe74 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go @@ -1,10 +1,10 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) var calleeSavedRegistersSorted = []regalloc.VReg{ diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go index 23fc2bf0..161fbda3 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_go_call_test.go @@ -4,11 +4,11 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_calleeSavedRegistersSorted(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/abi_test.go b/internal/engine/wazevo/backend/isa/arm64/abi_test.go index a917a67a..1b5c95b0 100644 --- a/internal/engine/wazevo/backend/isa/arm64/abi_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/abi_test.go @@ -3,10 +3,10 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAbiImpl_init(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/cond.go b/internal/engine/wazevo/backend/isa/arm64/cond.go index 6f6cdd1b..bd8626af 100644 --- a/internal/engine/wazevo/backend/isa/arm64/cond.go +++ b/internal/engine/wazevo/backend/isa/arm64/cond.go @@ -3,8 +3,8 @@ package arm64 import ( "strconv" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/instr.go b/internal/engine/wazevo/backend/isa/arm64/instr.go index 3f5a33ec..fa9b8387 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr.go @@ -5,8 +5,8 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go b/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go index 80a8f1ef..23f39370 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go @@ -3,9 +3,9 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Encode implements backend.Machine Encode. diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go b/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go index 58242bf6..ba5c25c7 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_encoding_test.go @@ -7,9 +7,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_dummy(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/instr_test.go b/internal/engine/wazevo/backend/isa/arm64/instr_test.go index 6e4ec7ce..6e091b7b 100644 --- a/internal/engine/wazevo/backend/isa/arm64/instr_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/instr_test.go @@ -4,8 +4,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestInstruction_String(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_constant.go b/internal/engine/wazevo/backend/isa/arm64/lower_constant.go index 5500d4cb..658b8fb2 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_constant.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_constant.go @@ -1,8 +1,8 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // lowerConstant allocates a new VReg and inserts the instruction to load the constant value. diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go index 34383c81..f56571cd 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_constant_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_lowerConstant(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr.go index 74484d1d..c049a8c9 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr.go @@ -10,9 +10,9 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // LowerSingleBranch implements backend.Machine. diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go index d9fbf178..1fb1290e 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go @@ -7,9 +7,9 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go index 914d256b..1db17d92 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands_test.go @@ -4,10 +4,10 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_asImm12(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go index e3f97023..eb8e4dbe 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_instr_test.go @@ -6,11 +6,11 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_LowerConditionalBranch(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_mem.go b/internal/engine/wazevo/backend/isa/arm64/lower_mem.go index a2484929..47a4e4d4 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_mem.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_mem.go @@ -3,8 +3,8 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go b/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go index 14a2b55f..aac54a18 100644 --- a/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/lower_mem_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAddressMode_format(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine.go b/internal/engine/wazevo/backend/isa/arm64/machine.go index 59d60e29..a6af31c8 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine.go @@ -5,10 +5,10 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go index 62b4e0ec..61ac2822 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go @@ -3,8 +3,8 @@ package arm64 import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // SetupPrologue implements backend.Machine. diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go index bc174a47..b06975b3 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_SetupPrologue(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go index 881d0975..9744a533 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go @@ -3,8 +3,8 @@ package arm64 // This file implements the interfaces required for register allocations. See regalloc/api.go. import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) type ( diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go index 0b7e53ff..3f6eaa1f 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_regalloc_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRegAllocFunctionImpl_addBlock(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go b/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go index 37d72667..98b92b88 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go @@ -1,8 +1,8 @@ package arm64 import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // ResolveRelocations implements backend.Machine ResolveRelocations. diff --git a/internal/engine/wazevo/backend/isa/arm64/machine_test.go b/internal/engine/wazevo/backend/isa/arm64/machine_test.go index da4227c7..f48c1ca8 100644 --- a/internal/engine/wazevo/backend/isa/arm64/machine_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/machine_test.go @@ -3,9 +3,9 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMachine_insertAtHead(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/reg.go b/internal/engine/wazevo/backend/isa/arm64/reg.go index 45737516..56953696 100644 --- a/internal/engine/wazevo/backend/isa/arm64/reg.go +++ b/internal/engine/wazevo/backend/isa/arm64/reg.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" ) // Arm64-specific registers. diff --git a/internal/engine/wazevo/backend/isa/arm64/reg_test.go b/internal/engine/wazevo/backend/isa/arm64/reg_test.go index 5ba77f32..3bf07d6a 100644 --- a/internal/engine/wazevo/backend/isa/arm64/reg_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/reg_test.go @@ -3,8 +3,8 @@ package arm64 import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_regs(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go b/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go index 136c8222..4e9905d2 100644 --- a/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/unwind_stack_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUnwindStack(t *testing.T) { diff --git a/internal/engine/wazevo/backend/isa/arm64/util_test.go b/internal/engine/wazevo/backend/isa/arm64/util_test.go index 77f51de1..5d1d1d2d 100644 --- a/internal/engine/wazevo/backend/isa/arm64/util_test.go +++ b/internal/engine/wazevo/backend/isa/arm64/util_test.go @@ -4,9 +4,9 @@ import ( "context" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) func getPendingInstr(m *machine) *instruction { diff --git a/internal/engine/wazevo/backend/machine.go b/internal/engine/wazevo/backend/machine.go index 8f492bb2..eef68247 100644 --- a/internal/engine/wazevo/backend/machine.go +++ b/internal/engine/wazevo/backend/machine.go @@ -1,9 +1,9 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) type ( diff --git a/internal/engine/wazevo/backend/machine_test.go b/internal/engine/wazevo/backend/machine_test.go index d831b74d..17e87540 100644 --- a/internal/engine/wazevo/backend/machine_test.go +++ b/internal/engine/wazevo/backend/machine_test.go @@ -1,9 +1,9 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // mockMachine implements Machine for testing. diff --git a/internal/engine/wazevo/backend/regalloc/reg.go b/internal/engine/wazevo/backend/regalloc/reg.go index e365936b..acacab69 100644 --- a/internal/engine/wazevo/backend/regalloc/reg.go +++ b/internal/engine/wazevo/backend/regalloc/reg.go @@ -3,7 +3,7 @@ package regalloc import ( "fmt" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // VReg represents a register which is assigned to an SSA value. This is used to represent a register in the backend. diff --git a/internal/engine/wazevo/backend/regalloc/reg_test.go b/internal/engine/wazevo/backend/regalloc/reg_test.go index 7c48200a..16704af7 100644 --- a/internal/engine/wazevo/backend/regalloc/reg_test.go +++ b/internal/engine/wazevo/backend/regalloc/reg_test.go @@ -3,8 +3,8 @@ package regalloc import ( "testing" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRegTypeOf(t *testing.T) { diff --git a/internal/engine/wazevo/backend/regalloc/regalloc.go b/internal/engine/wazevo/backend/regalloc/regalloc.go index 59630b1f..f8c184e9 100644 --- a/internal/engine/wazevo/backend/regalloc/regalloc.go +++ b/internal/engine/wazevo/backend/regalloc/regalloc.go @@ -13,7 +13,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // NewAllocator returns a new Allocator. diff --git a/internal/engine/wazevo/backend/regalloc/regalloc_test.go b/internal/engine/wazevo/backend/regalloc/regalloc_test.go index 37d01b80..d2635dc2 100644 --- a/internal/engine/wazevo/backend/regalloc/regalloc_test.go +++ b/internal/engine/wazevo/backend/regalloc/regalloc_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAllocator_livenessAnalysis(t *testing.T) { diff --git a/internal/engine/wazevo/backend/vdef.go b/internal/engine/wazevo/backend/vdef.go index edfa962b..746d4cb4 100644 --- a/internal/engine/wazevo/backend/vdef.go +++ b/internal/engine/wazevo/backend/vdef.go @@ -1,8 +1,8 @@ package backend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/regalloc" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" ) // SSAValueDefinition represents a definition of an SSA value. diff --git a/internal/engine/wazevo/call_engine.go b/internal/engine/wazevo/call_engine.go index 85515de4..d0d09167 100644 --- a/internal/engine/wazevo/call_engine.go +++ b/internal/engine/wazevo/call_engine.go @@ -7,13 +7,13 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( diff --git a/internal/engine/wazevo/call_engine_test.go b/internal/engine/wazevo/call_engine_test.go index b1fd19b7..06dfeb56 100644 --- a/internal/engine/wazevo/call_engine_test.go +++ b/internal/engine/wazevo/call_engine_test.go @@ -5,7 +5,7 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestCallEngine_init(t *testing.T) { diff --git a/internal/engine/wazevo/config.go b/internal/engine/wazevo/config.go index 7b009c64..8e221fa0 100644 --- a/internal/engine/wazevo/config.go +++ b/internal/engine/wazevo/config.go @@ -4,10 +4,10 @@ import ( "context" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/wasm" ) // ConfigureWazevo modifies wazero.RuntimeConfig and sets the wazevo implementation. diff --git a/internal/engine/wazevo/e2e_test.go b/internal/engine/wazevo/e2e_test.go index 7b057851..89eadf29 100644 --- a/internal/engine/wazevo/e2e_test.go +++ b/internal/engine/wazevo/e2e_test.go @@ -8,17 +8,17 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/engine/wazevo/engine.go b/internal/engine/wazevo/engine.go index aaabf9ef..125c4c0e 100644 --- a/internal/engine/wazevo/engine.go +++ b/internal/engine/wazevo/engine.go @@ -10,16 +10,16 @@ import ( "sync" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/frontend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/version" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/frontend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/version" + "github.com/wasilibs/wazerox/internal/wasm" ) type ( diff --git a/internal/engine/wazevo/engine_cache.go b/internal/engine/wazevo/engine_cache.go index fedc4d05..3c3cc8d4 100644 --- a/internal/engine/wazevo/engine_cache.go +++ b/internal/engine/wazevo/engine_cache.go @@ -10,15 +10,15 @@ import ( "runtime" "unsafe" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) // fileCacheKey returns a key for the file cache. diff --git a/internal/engine/wazevo/engine_cache_test.go b/internal/engine/wazevo/engine_cache_test.go index 8402f301..50cb3a2b 100644 --- a/internal/engine/wazevo/engine_cache_test.go +++ b/internal/engine/wazevo/engine_cache_test.go @@ -6,10 +6,10 @@ import ( "io" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u32" - "github.com/tetratelabs/wazero/internal/u64" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u32" + "github.com/wasilibs/wazerox/internal/u64" + "github.com/wasilibs/wazerox/internal/wasm" ) var testVersion = "0.0.1" diff --git a/internal/engine/wazevo/engine_test.go b/internal/engine/wazevo/engine_test.go index 853da938..9bb1d91f 100644 --- a/internal/engine/wazevo/engine_test.go +++ b/internal/engine/wazevo/engine_test.go @@ -7,9 +7,9 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_sharedFunctionsFinalizer(t *testing.T) { diff --git a/internal/engine/wazevo/entrypoint_arm64.go b/internal/engine/wazevo/entrypoint_arm64.go index 95ceeff5..56c5048b 100644 --- a/internal/engine/wazevo/entrypoint_arm64.go +++ b/internal/engine/wazevo/entrypoint_arm64.go @@ -4,10 +4,10 @@ import _ "unsafe" // entrypoint is implemented by the backend. // -//go:linkname entrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64.entrypoint +//go:linkname entrypoint github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64.entrypoint func entrypoint(preambleExecutable, functionExecutable *byte, executionContextPtr uintptr, moduleContextPtr *byte, paramResultStackPtr *uint64, goAllocatedStackSlicePtr uintptr) // entrypoint is implemented by the backend. // -//go:linkname afterGoFunctionCallEntrypoint github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64.afterGoFunctionCallEntrypoint +//go:linkname afterGoFunctionCallEntrypoint github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64.afterGoFunctionCallEntrypoint func afterGoFunctionCallEntrypoint(executable *byte, executionContextPtr uintptr, stackPointer uintptr) diff --git a/internal/engine/wazevo/frontend/frontend.go b/internal/engine/wazevo/frontend/frontend.go index 1c54c8b4..b275d67a 100644 --- a/internal/engine/wazevo/frontend/frontend.go +++ b/internal/engine/wazevo/frontend/frontend.go @@ -4,9 +4,9 @@ package frontend import ( "bytes" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/wasm" ) // Compiler is in charge of lowering Wasm to SSA IR, and does the optimization diff --git a/internal/engine/wazevo/frontend/frontend_test.go b/internal/engine/wazevo/frontend/frontend_test.go index f50d3218..1bf82915 100644 --- a/internal/engine/wazevo/frontend/frontend_test.go +++ b/internal/engine/wazevo/frontend/frontend_test.go @@ -3,12 +3,12 @@ package frontend import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/testcases" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/testcases" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestCompiler_LowerToSSA(t *testing.T) { diff --git a/internal/engine/wazevo/frontend/lower.go b/internal/engine/wazevo/frontend/lower.go index 0816910e..8a8fa09c 100644 --- a/internal/engine/wazevo/frontend/lower.go +++ b/internal/engine/wazevo/frontend/lower.go @@ -6,11 +6,11 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) type ( diff --git a/internal/engine/wazevo/frontend/lower_test.go b/internal/engine/wazevo/frontend/lower_test.go index 0bb8fe9a..f436f909 100644 --- a/internal/engine/wazevo/frontend/lower_test.go +++ b/internal/engine/wazevo/frontend/lower_test.go @@ -4,8 +4,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_Offsets(t *testing.T) { diff --git a/internal/engine/wazevo/frontend/misc.go b/internal/engine/wazevo/frontend/misc.go index 2db2b892..6929b011 100644 --- a/internal/engine/wazevo/frontend/misc.go +++ b/internal/engine/wazevo/frontend/misc.go @@ -1,8 +1,8 @@ package frontend import ( - "github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/ssa" + "github.com/wasilibs/wazerox/internal/wasm" ) func FunctionIndexToFuncRef(idx wasm.Index) ssa.FuncRef { diff --git a/internal/engine/wazevo/hostmodule.go b/internal/engine/wazevo/hostmodule.go index 3ce9850f..f9cabd9c 100644 --- a/internal/engine/wazevo/hostmodule.go +++ b/internal/engine/wazevo/hostmodule.go @@ -5,8 +5,8 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) func buildHostModuleOpaque(m *wasm.Module, listeners []experimental.FunctionListener) moduleContextOpaque { diff --git a/internal/engine/wazevo/hostmodule_test.go b/internal/engine/wazevo/hostmodule_test.go index 768fe9b6..7a07312e 100644 --- a/internal/engine/wazevo/hostmodule_test.go +++ b/internal/engine/wazevo/hostmodule_test.go @@ -5,10 +5,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_writeIface_readIface(t *testing.T) { diff --git a/internal/engine/wazevo/machine.go b/internal/engine/wazevo/machine.go index 0ad347b5..b8aece42 100644 --- a/internal/engine/wazevo/machine.go +++ b/internal/engine/wazevo/machine.go @@ -3,8 +3,8 @@ package wazevo import ( "runtime" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend" - "github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend" + "github.com/wasilibs/wazerox/internal/engine/wazevo/backend/isa/arm64" ) func newMachine() backend.Machine { diff --git a/internal/engine/wazevo/module_engine.go b/internal/engine/wazevo/module_engine.go index 7d202c77..28311a00 100644 --- a/internal/engine/wazevo/module_engine.go +++ b/internal/engine/wazevo/module_engine.go @@ -4,11 +4,11 @@ import ( "encoding/binary" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( diff --git a/internal/engine/wazevo/module_engine_test.go b/internal/engine/wazevo/module_engine_test.go index 86c1461d..3acfbd21 100644 --- a/internal/engine/wazevo/module_engine_test.go +++ b/internal/engine/wazevo/module_engine_test.go @@ -7,9 +7,9 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestModuleEngine_setupOpaque(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/builder.go b/internal/engine/wazevo/ssa/builder.go index 90a83853..99593d0f 100644 --- a/internal/engine/wazevo/ssa/builder.go +++ b/internal/engine/wazevo/ssa/builder.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Builder is used to builds SSA consisting of Basic Blocks per function. diff --git a/internal/engine/wazevo/ssa/builder_test.go b/internal/engine/wazevo/ssa/builder_test.go index 04355295..c806fe12 100644 --- a/internal/engine/wazevo/ssa/builder_test.go +++ b/internal/engine/wazevo/ssa/builder_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_maybeInvertBranch(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/instructions.go b/internal/engine/wazevo/ssa/instructions.go index 4dbe0883..11611e86 100644 --- a/internal/engine/wazevo/ssa/instructions.go +++ b/internal/engine/wazevo/ssa/instructions.go @@ -5,7 +5,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Opcode represents a SSA instruction. diff --git a/internal/engine/wazevo/ssa/instructions_test.go b/internal/engine/wazevo/ssa/instructions_test.go index 20b0371f..d82107be 100644 --- a/internal/engine/wazevo/ssa/instructions_test.go +++ b/internal/engine/wazevo/ssa/instructions_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestInstruction_InvertConditionalBrx(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/pass.go b/internal/engine/wazevo/ssa/pass.go index 17c8486f..58c6b597 100644 --- a/internal/engine/wazevo/ssa/pass.go +++ b/internal/engine/wazevo/ssa/pass.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // RunPasses implements Builder.RunPasses. diff --git a/internal/engine/wazevo/ssa/pass_cfg.go b/internal/engine/wazevo/ssa/pass_cfg.go index c39a75b5..d6526737 100644 --- a/internal/engine/wazevo/ssa/pass_cfg.go +++ b/internal/engine/wazevo/ssa/pass_cfg.go @@ -5,7 +5,7 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // passCalculateImmediateDominators calculates immediate dominators for each basic block. diff --git a/internal/engine/wazevo/ssa/pass_cfg_test.go b/internal/engine/wazevo/ssa/pass_cfg_test.go index 014428ed..b083a330 100644 --- a/internal/engine/wazevo/ssa/pass_cfg_test.go +++ b/internal/engine/wazevo/ssa/pass_cfg_test.go @@ -4,7 +4,7 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBuilder_passCalculateImmediateDominators(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/pass_test.go b/internal/engine/wazevo/ssa/pass_test.go index 2a831a67..6ef1503b 100644 --- a/internal/engine/wazevo/ssa/pass_test.go +++ b/internal/engine/wazevo/ssa/pass_test.go @@ -3,7 +3,7 @@ package ssa import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBuilder_passes(t *testing.T) { diff --git a/internal/engine/wazevo/ssa/vs.go b/internal/engine/wazevo/ssa/vs.go index 0afc941d..21e5b682 100644 --- a/internal/engine/wazevo/ssa/vs.go +++ b/internal/engine/wazevo/ssa/vs.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" ) // Variable is a unique identifier for a source program's variable and will correspond to diff --git a/internal/engine/wazevo/testcases/testcases.go b/internal/engine/wazevo/testcases/testcases.go index fec163fe..980b6a66 100644 --- a/internal/engine/wazevo/testcases/testcases.go +++ b/internal/engine/wazevo/testcases/testcases.go @@ -3,8 +3,8 @@ package testcases import ( "math" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ExportedFunctionName = "f" diff --git a/internal/engine/wazevo/wazevo_test.go b/internal/engine/wazevo/wazevo_test.go index 8aeae7d6..649dfb51 100644 --- a/internal/engine/wazevo/wazevo_test.go +++ b/internal/engine/wazevo/wazevo_test.go @@ -7,10 +7,10 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo/wazevoapi" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ctx = context.Background() diff --git a/internal/engine/wazevo/wazevoapi/exitcode_test.go b/internal/engine/wazevo/wazevoapi/exitcode_test.go index ef7e317c..037da88c 100644 --- a/internal/engine/wazevo/wazevoapi/exitcode_test.go +++ b/internal/engine/wazevo/wazevoapi/exitcode_test.go @@ -3,7 +3,7 @@ package wazevoapi import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestExitCode_withinByte(t *testing.T) { diff --git a/internal/engine/wazevo/wazevoapi/offsetdata.go b/internal/engine/wazevo/wazevoapi/offsetdata.go index d21489b1..17fb0678 100644 --- a/internal/engine/wazevo/wazevoapi/offsetdata.go +++ b/internal/engine/wazevo/wazevoapi/offsetdata.go @@ -1,7 +1,7 @@ package wazevoapi import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/engine/wazevo/wazevoapi/offsetdata_test.go b/internal/engine/wazevo/wazevoapi/offsetdata_test.go index ea64a985..323318d9 100644 --- a/internal/engine/wazevo/wazevoapi/offsetdata_test.go +++ b/internal/engine/wazevo/wazevoapi/offsetdata_test.go @@ -3,8 +3,8 @@ package wazevoapi import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestNewModuleContextOffsetData(t *testing.T) { diff --git a/internal/filecache/file_cache_test.go b/internal/filecache/file_cache_test.go index 68713b2d..69f3d2bb 100644 --- a/internal/filecache/file_cache_test.go +++ b/internal/filecache/file_cache_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFileReadCloser_Close(t *testing.T) { diff --git a/internal/fsapi/file.go b/internal/fsapi/file.go index 0640b227..77ad4988 100644 --- a/internal/fsapi/file.go +++ b/internal/fsapi/file.go @@ -1,6 +1,6 @@ package fsapi -import experimentalsys "github.com/tetratelabs/wazero/experimental/sys" +import experimentalsys "github.com/wasilibs/wazerox/experimental/sys" // File includes methods not yet ready to document for end users, notably // non-blocking functionality. diff --git a/internal/fsapi/unimplemented.go b/internal/fsapi/unimplemented.go index 99d9c2db..47be0cc8 100644 --- a/internal/fsapi/unimplemented.go +++ b/internal/fsapi/unimplemented.go @@ -1,6 +1,6 @@ package fsapi -import experimentalsys "github.com/tetratelabs/wazero/experimental/sys" +import experimentalsys "github.com/wasilibs/wazerox/experimental/sys" func Adapt(f experimentalsys.File) File { if f, ok := f.(File); ok { diff --git a/internal/gojs/argsenv.go b/internal/gojs/argsenv.go index f41a5b16..e7301014 100644 --- a/internal/gojs/argsenv.go +++ b/internal/gojs/argsenv.go @@ -4,9 +4,9 @@ import ( "encoding/binary" "errors" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // Constants about memory layout. See REFERENCE.md diff --git a/internal/gojs/argsenv_test.go b/internal/gojs/argsenv_test.go index 99592b51..1c01b8a9 100644 --- a/internal/gojs/argsenv_test.go +++ b/internal/gojs/argsenv_test.go @@ -3,9 +3,9 @@ package gojs_test import ( "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_argsAndEnv(t *testing.T) { diff --git a/internal/gojs/builtin.go b/internal/gojs/builtin.go index dc9a1053..9111aec0 100644 --- a/internal/gojs/builtin.go +++ b/internal/gojs/builtin.go @@ -1,8 +1,8 @@ package gojs import ( - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) // newJsGlobal = js.Global() // js.go init diff --git a/internal/gojs/compiler_test.go b/internal/gojs/compiler_test.go index b9cd319a..29329a7a 100644 --- a/internal/gojs/compiler_test.go +++ b/internal/gojs/compiler_test.go @@ -16,13 +16,13 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/gojs" - "github.com/tetratelabs/wazero/internal/fstest" - internalgojs "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/run" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/gojs" + "github.com/wasilibs/wazerox/internal/fstest" + internalgojs "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/run" ) type newConfig func(moduleConfig wazero.ModuleConfig) (wazero.ModuleConfig, *config.Config) diff --git a/internal/gojs/config/config.go b/internal/gojs/config/config.go index b046a46e..cfe5c0ce 100644 --- a/internal/gojs/config/config.go +++ b/internal/gojs/config/config.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/internal/platform" ) type Config struct { diff --git a/internal/gojs/config/config_test.go b/internal/gojs/config/config_test.go index 621ed164..42558b23 100644 --- a/internal/gojs/config/config_test.go +++ b/internal/gojs/config/config_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestConfig_Init(t *testing.T) { diff --git a/internal/gojs/crypto.go b/internal/gojs/crypto.go index 7b528da3..32843e51 100644 --- a/internal/gojs/crypto.go +++ b/internal/gojs/crypto.go @@ -3,10 +3,10 @@ package gojs import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/wasm" ) // jsCrypto is used by crypto/rand.Read to gets random values. diff --git a/internal/gojs/crypto_test.go b/internal/gojs/crypto_test.go index d496ae55..e1091c65 100644 --- a/internal/gojs/crypto_test.go +++ b/internal/gojs/crypto_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_crypto(t *testing.T) { diff --git a/internal/gojs/custom/fs_test.go b/internal/gojs/custom/fs_test.go index d3da015f..720a00ae 100644 --- a/internal/gojs/custom/fs_test.go +++ b/internal/gojs/custom/fs_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_ToJsMode(t *testing.T) { diff --git a/internal/gojs/errno.go b/internal/gojs/errno.go index 48284da2..4cc7a4d4 100644 --- a/internal/gojs/errno.go +++ b/internal/gojs/errno.go @@ -3,7 +3,7 @@ package gojs import ( "io" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // Errno is a (GOARCH=wasm) error, which must match a key in mapJSError. diff --git a/internal/gojs/errno_test.go b/internal/gojs/errno_test.go index d8b9f399..1f9716ba 100644 --- a/internal/gojs/errno_test.go +++ b/internal/gojs/errno_test.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestToErrno(t *testing.T) { diff --git a/internal/gojs/fs.go b/internal/gojs/fs.go index ca156557..a57a4066 100644 --- a/internal/gojs/fs.go +++ b/internal/gojs/fs.go @@ -4,14 +4,14 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/util" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/util" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/internal/gojs/fs_test.go b/internal/gojs/fs_test.go index 2fe8bf64..a18bbf1f 100644 --- a/internal/gojs/fs_test.go +++ b/internal/gojs/fs_test.go @@ -5,11 +5,11 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_fs(t *testing.T) { diff --git a/internal/gojs/goarch/wasm.go b/internal/gojs/goarch/wasm.go index 9f2f56c3..b55a5ba3 100644 --- a/internal/gojs/goarch/wasm.go +++ b/internal/gojs/goarch/wasm.go @@ -6,10 +6,10 @@ import ( "context" "encoding/binary" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // StubFunction stubs functions not used in Go's main source tree. diff --git a/internal/gojs/goos/goos.go b/internal/gojs/goos/goos.go index 8121eae7..52975e9e 100644 --- a/internal/gojs/goos/goos.go +++ b/internal/gojs/goos/goos.go @@ -7,10 +7,10 @@ import ( "encoding/binary" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/util" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/util" + "github.com/wasilibs/wazerox/internal/wasm" ) // Ref is used to identify a JavaScript value, since the value itself cannot diff --git a/internal/gojs/js.go b/internal/gojs/js.go index 2667fa6e..283c2f3d 100644 --- a/internal/gojs/js.go +++ b/internal/gojs/js.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) // jsFn is a jsCall.call function, configured via jsVal.addFunction. diff --git a/internal/gojs/logging/logging.go b/internal/gojs/logging/logging.go index 7ca69dc3..1c6ca8ee 100644 --- a/internal/gojs/logging/logging.go +++ b/internal/gojs/logging/logging.go @@ -7,13 +7,13 @@ import ( "os" "strconv" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/sys" ) // IsInLogScope returns true if the current function is in any of the scopes. diff --git a/internal/gojs/logging/logging_test.go b/internal/gojs/logging/logging_test.go index 1574724d..3f19336a 100644 --- a/internal/gojs/logging/logging_test.go +++ b/internal/gojs/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/gojs/misc_test.go b/internal/gojs/misc_test.go index b8454697..09a30b61 100644 --- a/internal/gojs/misc_test.go +++ b/internal/gojs/misc_test.go @@ -7,11 +7,11 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_exit(t *testing.T) { diff --git a/internal/gojs/process.go b/internal/gojs/process.go index 64af3204..11dfe62a 100644 --- a/internal/gojs/process.go +++ b/internal/gojs/process.go @@ -4,11 +4,11 @@ import ( "context" "path" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/util" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/util" ) // processState are the mutable fields of the current process. diff --git a/internal/gojs/process_test.go b/internal/gojs/process_test.go index 9965c1e5..4f5469bb 100644 --- a/internal/gojs/process_test.go +++ b/internal/gojs/process_test.go @@ -4,9 +4,9 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_process(t *testing.T) { diff --git a/internal/gojs/run/gojs.go b/internal/gojs/run/gojs.go index 651debb8..3db7915e 100644 --- a/internal/gojs/run/gojs.go +++ b/internal/gojs/run/gojs.go @@ -5,10 +5,10 @@ package run import ( "context" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/gojs" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/gojs" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/sys" ) func Run(ctx context.Context, r wazero.Runtime, compiled wazero.CompiledModule, moduleConfig wazero.ModuleConfig, config *config.Config) error { diff --git a/internal/gojs/runtime.go b/internal/gojs/runtime.go index eec1c86b..54592227 100644 --- a/internal/gojs/runtime.go +++ b/internal/gojs/runtime.go @@ -5,11 +5,11 @@ import ( "fmt" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/wasm" ) // Debug has unknown use, so stubbed. diff --git a/internal/gojs/state.go b/internal/gojs/state.go index a0ac6c92..c55062fb 100644 --- a/internal/gojs/state.go +++ b/internal/gojs/state.go @@ -5,10 +5,10 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/config" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/gojs/values" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/config" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/values" ) func NewState(config *config.Config) *State { diff --git a/internal/gojs/syscall.go b/internal/gojs/syscall.go index 6594caf8..ef9efd0c 100644 --- a/internal/gojs/syscall.go +++ b/internal/gojs/syscall.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goarch" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goarch" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/sys" ) // FinalizeRef implements js.finalizeRef, which is used as a diff --git a/internal/gojs/testdata/main.go b/internal/gojs/testdata/main.go index a389d4e4..8d283911 100644 --- a/internal/gojs/testdata/main.go +++ b/internal/gojs/testdata/main.go @@ -4,17 +4,17 @@ import ( "fmt" "os" - "github.com/tetratelabs/wazero/internal/gojs/testdata/argsenv" - "github.com/tetratelabs/wazero/internal/gojs/testdata/crypto" - "github.com/tetratelabs/wazero/internal/gojs/testdata/fs" - "github.com/tetratelabs/wazero/internal/gojs/testdata/gc" - "github.com/tetratelabs/wazero/internal/gojs/testdata/goroutine" - "github.com/tetratelabs/wazero/internal/gojs/testdata/mem" - "github.com/tetratelabs/wazero/internal/gojs/testdata/process" - "github.com/tetratelabs/wazero/internal/gojs/testdata/stdio" - "github.com/tetratelabs/wazero/internal/gojs/testdata/testfs" - "github.com/tetratelabs/wazero/internal/gojs/testdata/time" - "github.com/tetratelabs/wazero/internal/gojs/testdata/writefs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/argsenv" + "github.com/wasilibs/wazerox/internal/gojs/testdata/crypto" + "github.com/wasilibs/wazerox/internal/gojs/testdata/fs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/gc" + "github.com/wasilibs/wazerox/internal/gojs/testdata/goroutine" + "github.com/wasilibs/wazerox/internal/gojs/testdata/mem" + "github.com/wasilibs/wazerox/internal/gojs/testdata/process" + "github.com/wasilibs/wazerox/internal/gojs/testdata/stdio" + "github.com/wasilibs/wazerox/internal/gojs/testdata/testfs" + "github.com/wasilibs/wazerox/internal/gojs/testdata/time" + "github.com/wasilibs/wazerox/internal/gojs/testdata/writefs" ) // main includes a registry of all tests to reduce compilation time. diff --git a/internal/gojs/testdata/testfs/main.go b/internal/gojs/testdata/testfs/main.go index 1d8cc3d5..d27484bc 100644 --- a/internal/gojs/testdata/testfs/main.go +++ b/internal/gojs/testdata/testfs/main.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/tetratelabs/wazero/internal/fstest" + "github.com/wasilibs/wazerox/internal/fstest" ) func Main() { diff --git a/internal/gojs/testdata/writefs/stat.go b/internal/gojs/testdata/writefs/stat.go index 8091840b..8a74a728 100644 --- a/internal/gojs/testdata/writefs/stat.go +++ b/internal/gojs/testdata/writefs/stat.go @@ -3,7 +3,7 @@ package writefs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // statFields isn't used outside JS, it is only for compilation diff --git a/internal/gojs/time.go b/internal/gojs/time.go index 8b40b7d8..fed1187f 100644 --- a/internal/gojs/time.go +++ b/internal/gojs/time.go @@ -3,9 +3,9 @@ package gojs import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) var ( diff --git a/internal/gojs/time_test.go b/internal/gojs/time_test.go index eb7502d1..370f93f8 100644 --- a/internal/gojs/time_test.go +++ b/internal/gojs/time_test.go @@ -5,9 +5,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_time(t *testing.T) { diff --git a/internal/gojs/util/util.go b/internal/gojs/util/util.go index 5fc29aab..9346d74d 100644 --- a/internal/gojs/util/util.go +++ b/internal/gojs/util/util.go @@ -4,9 +4,9 @@ import ( "fmt" pathutil "path" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/wasm" ) // MustWrite is like api.Memory except that it panics if the offset diff --git a/internal/gojs/util/util_test.go b/internal/gojs/util/util_test.go index db02beb6..7b637c7b 100644 --- a/internal/gojs/util/util_test.go +++ b/internal/gojs/util/util_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/gojs/custom" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/gojs/custom" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestMustRead(t *testing.T) { diff --git a/internal/gojs/values/values.go b/internal/gojs/values/values.go index 53dce81a..dbaadea8 100644 --- a/internal/gojs/values/values.go +++ b/internal/gojs/values/values.go @@ -3,7 +3,7 @@ package values import ( "fmt" - "github.com/tetratelabs/wazero/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/gojs/goos" ) func NewValues() *Values { diff --git a/internal/gojs/values/values_test.go b/internal/gojs/values/values_test.go index 1b84cf32..7df2bb1d 100644 --- a/internal/gojs/values/values_test.go +++ b/internal/gojs/values/values_test.go @@ -3,8 +3,8 @@ package values import ( "testing" - "github.com/tetratelabs/wazero/internal/gojs/goos" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/gojs/goos" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_Values(t *testing.T) { diff --git a/internal/integration_test/bench/bench_test.go b/internal/integration_test/bench/bench_test.go index 5cf46856..bc1df9b1 100644 --- a/internal/integration_test/bench/bench_test.go +++ b/internal/integration_test/bench/bench_test.go @@ -8,10 +8,10 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/platform" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/platform" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/integration_test/bench/decoder_bench_test.go b/internal/integration_test/bench/decoder_bench_test.go index c2c2ed5b..008cecd5 100644 --- a/internal/integration_test/bench/decoder_bench_test.go +++ b/internal/integration_test/bench/decoder_bench_test.go @@ -3,9 +3,9 @@ package bench import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" ) func BenchmarkCodec(b *testing.B) { diff --git a/internal/integration_test/bench/hostfunc_bench_test.go b/internal/integration_test/bench/hostfunc_bench_test.go index cd0a597c..8bb84188 100644 --- a/internal/integration_test/bench/hostfunc_bench_test.go +++ b/internal/integration_test/bench/hostfunc_bench_test.go @@ -7,11 +7,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/compiler" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/compiler" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/integration_test/bench/memory_bench_test.go b/internal/integration_test/bench/memory_bench_test.go index 558eae0b..64b3415e 100644 --- a/internal/integration_test/bench/memory_bench_test.go +++ b/internal/integration_test/bench/memory_bench_test.go @@ -3,7 +3,7 @@ package bench import ( "testing" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) func BenchmarkMemory(b *testing.B) { diff --git a/internal/integration_test/engine/adhoc_test.go b/internal/integration_test/engine/adhoc_test.go index 0e8bb696..6317550e 100644 --- a/internal/integration_test/engine/adhoc_test.go +++ b/internal/integration_test/engine/adhoc_test.go @@ -14,22 +14,22 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/experimental/table" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/proxy" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" - "github.com/tetratelabs/wazero/internal/wasmdebug" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/experimental/table" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/proxy" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" + "github.com/wasilibs/wazerox/internal/wasmdebug" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/sys" ) type testCase struct { diff --git a/internal/integration_test/engine/dwarf_test.go b/internal/integration_test/engine/dwarf_test.go index cc93e4f6..55e5472d 100644 --- a/internal/integration_test/engine/dwarf_test.go +++ b/internal/integration_test/engine/dwarf_test.go @@ -7,12 +7,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" ) var dwarfTests = map[string]testCase{ diff --git a/internal/integration_test/engine/hammer_test.go b/internal/integration_test/engine/hammer_test.go index eb360a06..c5cf464a 100644 --- a/internal/integration_test/engine/hammer_test.go +++ b/internal/integration_test/engine/hammer_test.go @@ -6,13 +6,13 @@ import ( "sync" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) var hammers = map[string]testCase{ diff --git a/internal/integration_test/engine/memleak_test.go b/internal/integration_test/engine/memleak_test.go index d1d98abc..e8eab85e 100644 --- a/internal/integration_test/engine/memleak_test.go +++ b/internal/integration_test/engine/memleak_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/engine/wazevo" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/engine/wazevo" ) func TestMemoryLeak(t *testing.T) { diff --git a/internal/integration_test/engine/threads_test.go b/internal/integration_test/engine/threads_test.go index c01fcdef..21716027 100644 --- a/internal/integration_test/engine/threads_test.go +++ b/internal/integration_test/engine/threads_test.go @@ -4,11 +4,11 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) // We do not currently have hammer tests for bitwise and/or operations. The tests are designed to have diff --git a/internal/integration_test/filecache/filecache_test.go b/internal/integration_test/filecache/filecache_test.go index c5129a2a..357681d0 100644 --- a/internal/integration_test/filecache/filecache_test.go +++ b/internal/integration_test/filecache/filecache_test.go @@ -11,17 +11,17 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - v1 "github.com/tetratelabs/wazero/internal/integration_test/spectest/v1" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + v1 "github.com/wasilibs/wazerox/internal/integration_test/spectest/v1" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestFileCacheSpecTest_compiler(t *testing.T) { diff --git a/internal/integration_test/fuzz/go.mod b/internal/integration_test/fuzz/go.mod index 3b4825e6..c1b27524 100644 --- a/internal/integration_test/fuzz/go.mod +++ b/internal/integration_test/fuzz/go.mod @@ -1,7 +1,7 @@ -module github.com/tetratelabs/wazero/internal/integration_test/fuzz +module github.com/wasilibs/wazerox/internal/integration_test/fuzz go 1.19 -require github.com/tetratelabs/wazero v0.0.0 +require github.com/wasilibs/wazerox v0.0.0 -replace github.com/tetratelabs/wazero => ../../../ +replace github.com/wasilibs/wazerox => ../../../ diff --git a/internal/integration_test/fuzz/wazerolib/lib.go b/internal/integration_test/fuzz/wazerolib/lib.go index 70fc86dc..d03597cd 100644 --- a/internal/integration_test/fuzz/wazerolib/lib.go +++ b/internal/integration_test/fuzz/wazerolib/lib.go @@ -8,8 +8,8 @@ import ( "os" "path" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/internal/engine/wazevo" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/internal/engine/wazevo" ) func main() {} diff --git a/internal/integration_test/fuzz/wazerolib/nodiff.go b/internal/integration_test/fuzz/wazerolib/nodiff.go index 2ced68f8..edf8a658 100644 --- a/internal/integration_test/fuzz/wazerolib/nodiff.go +++ b/internal/integration_test/fuzz/wazerolib/nodiff.go @@ -10,10 +10,10 @@ import ( "strings" "unsafe" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/wasm" ) // require_no_diff ensures that the behavior is the same between the compiler and the interpreter for any given binary. diff --git a/internal/integration_test/fuzz/wazerolib/nodiff_test.go b/internal/integration_test/fuzz/wazerolib/nodiff_test.go index 9807f7e7..5b250bae 100644 --- a/internal/integration_test/fuzz/wazerolib/nodiff_test.go +++ b/internal/integration_test/fuzz/wazerolib/nodiff_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestReRunFailedRequireNoDiffCase re-runs the failed case specified by WASM_BINARY_NAME in testdata directory. diff --git a/internal/integration_test/fuzz/wazerolib/validate.go b/internal/integration_test/fuzz/wazerolib/validate.go index 67e06e60..289d2da9 100644 --- a/internal/integration_test/fuzz/wazerolib/validate.go +++ b/internal/integration_test/fuzz/wazerolib/validate.go @@ -6,7 +6,7 @@ import ( "reflect" "unsafe" - "github.com/tetratelabs/wazero" + wazero "github.com/wasilibs/wazerox" ) // validate accepts maybe-invalid Wasm module bytes and ensures that our validation phase works correctly diff --git a/internal/integration_test/fuzzcases/fuzzcases_test.go b/internal/integration_test/fuzzcases/fuzzcases_test.go index f4daf903..55683aa3 100644 --- a/internal/integration_test/fuzzcases/fuzzcases_test.go +++ b/internal/integration_test/fuzzcases/fuzzcases_test.go @@ -7,13 +7,13 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ctx = context.Background() diff --git a/internal/integration_test/spectest/spectest.go b/internal/integration_test/spectest/spectest.go index 87bc6fa1..84c0467b 100644 --- a/internal/integration_test/spectest/spectest.go +++ b/internal/integration_test/spectest/spectest.go @@ -10,12 +10,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmruntime" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) type ( diff --git a/internal/integration_test/spectest/spectest_test.go b/internal/integration_test/spectest/spectest_test.go index ed8b3b8d..f436328c 100644 --- a/internal/integration_test/spectest/spectest_test.go +++ b/internal/integration_test/spectest/spectest_test.go @@ -5,9 +5,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/moremath" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/moremath" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_f32Equal(t *testing.T) { diff --git a/internal/integration_test/spectest/threads/spec_test.go b/internal/integration_test/spectest/threads/spec_test.go index df5a19d9..c4f454b4 100644 --- a/internal/integration_test/spectest/threads/spec_test.go +++ b/internal/integration_test/spectest/threads/spec_test.go @@ -5,11 +5,11 @@ import ( "embed" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) //go:embed testdata/*.wasm diff --git a/internal/integration_test/spectest/v1/spec_test.go b/internal/integration_test/spectest/v1/spec_test.go index 2d36f493..bf342504 100644 --- a/internal/integration_test/spectest/v1/spec_test.go +++ b/internal/integration_test/spectest/v1/spec_test.go @@ -5,11 +5,11 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) func TestCompiler(t *testing.T) { diff --git a/internal/integration_test/spectest/v2/spec_test.go b/internal/integration_test/spectest/v2/spec_test.go index 5fe3b99f..e84b8be3 100644 --- a/internal/integration_test/spectest/v2/spec_test.go +++ b/internal/integration_test/spectest/v2/spec_test.go @@ -5,11 +5,11 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/engine/wazevo" - "github.com/tetratelabs/wazero/internal/integration_test/spectest" - "github.com/tetratelabs/wazero/internal/platform" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/engine/wazevo" + "github.com/wasilibs/wazerox/internal/integration_test/spectest" + "github.com/wasilibs/wazerox/internal/platform" ) const enabledFeatures = api.CoreFeaturesV2 diff --git a/internal/integration_test/vs/bench.go b/internal/integration_test/vs/bench.go index 767f19de..61623712 100644 --- a/internal/integration_test/vs/bench.go +++ b/internal/integration_test/vs/bench.go @@ -10,7 +10,7 @@ import ( "testing" "text/tabwriter" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/integration_test/vs/bench_allocation.go b/internal/integration_test/vs/bench_allocation.go index 382b65d2..cae8cf4e 100644 --- a/internal/integration_test/vs/bench_allocation.go +++ b/internal/integration_test/vs/bench_allocation.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_factorial.go b/internal/integration_test/vs/bench_factorial.go index 7cb94284..cc04cc75 100644 --- a/internal/integration_test/vs/bench_factorial.go +++ b/internal/integration_test/vs/bench_factorial.go @@ -4,7 +4,7 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_hostcall.go b/internal/integration_test/vs/bench_hostcall.go index 85502af3..42b2d0e9 100644 --- a/internal/integration_test/vs/bench_hostcall.go +++ b/internal/integration_test/vs/bench_hostcall.go @@ -4,7 +4,7 @@ import ( _ "embed" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/integration_test/vs/bench_memory.go b/internal/integration_test/vs/bench_memory.go index 4cc99036..7153d080 100644 --- a/internal/integration_test/vs/bench_memory.go +++ b/internal/integration_test/vs/bench_memory.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) const ( diff --git a/internal/integration_test/vs/compiler/compiler_test.go b/internal/integration_test/vs/compiler/compiler_test.go index 2c711f9e..22bfeef1 100644 --- a/internal/integration_test/vs/compiler/compiler_test.go +++ b/internal/integration_test/vs/compiler/compiler_test.go @@ -3,7 +3,7 @@ package compiler import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = vs.NewWazeroCompilerRuntime diff --git a/internal/integration_test/vs/interpreter/interpreter_test.go b/internal/integration_test/vs/interpreter/interpreter_test.go index 84090af8..c21ab0f3 100644 --- a/internal/integration_test/vs/interpreter/interpreter_test.go +++ b/internal/integration_test/vs/interpreter/interpreter_test.go @@ -3,7 +3,7 @@ package interpreter import ( "testing" - "github.com/tetratelabs/wazero/internal/integration_test/vs" + "github.com/wasilibs/wazerox/internal/integration_test/vs" ) var runtime = vs.NewWazeroInterpreterRuntime diff --git a/internal/integration_test/vs/runtime.go b/internal/integration_test/vs/runtime.go index 2c2a7b4e..1b2e8133 100644 --- a/internal/integration_test/vs/runtime.go +++ b/internal/integration_test/vs/runtime.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/imports/wasi_snapshot_preview1" + "github.com/wasilibs/wazerox/internal/wasm" ) type RuntimeConfig struct { diff --git a/internal/leb128/leb128_alloc_test.go b/internal/leb128/leb128_alloc_test.go index ccc9d0eb..9070658b 100644 --- a/internal/leb128/leb128_alloc_test.go +++ b/internal/leb128/leb128_alloc_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestLeb128NoAlloc ensures no allocation required in the leb128 package. diff --git a/internal/leb128/leb128_test.go b/internal/leb128/leb128_test.go index d8532afc..aaf47eda 100644 --- a/internal/leb128/leb128_test.go +++ b/internal/leb128/leb128_test.go @@ -6,7 +6,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestEncode_DecodeInt32(t *testing.T) { diff --git a/internal/logging/logging.go b/internal/logging/logging.go index 760585b2..d13e6216 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // ValueType is an extended form of api.ValueType, used to control logging in diff --git a/internal/logging/logging_test.go b/internal/logging/logging_test.go index a4cc7c78..9a3e90c8 100644 --- a/internal/logging/logging_test.go +++ b/internal/logging/logging_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestLogScopes tests the bitset works as expected diff --git a/internal/moremath/moremath_test.go b/internal/moremath/moremath_test.go index 41974b3b..e193f8a0 100644 --- a/internal/moremath/moremath_test.go +++ b/internal/moremath/moremath_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) var ( diff --git a/internal/platform/cpuid_amd64_test.go b/internal/platform/cpuid_amd64_test.go index 05e3d4a3..e6eb60db 100644 --- a/internal/platform/cpuid_amd64_test.go +++ b/internal/platform/cpuid_amd64_test.go @@ -3,7 +3,7 @@ package platform import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestAmd64CpuId_cpuHasFeature(t *testing.T) { diff --git a/internal/platform/mmap_linux_test.go b/internal/platform/mmap_linux_test.go index 5f4a6b79..9022da61 100644 --- a/internal/platform/mmap_linux_test.go +++ b/internal/platform/mmap_linux_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestHugePageConfigs(t *testing.T) { diff --git a/internal/platform/mmap_test.go b/internal/platform/mmap_test.go index 74496083..2f134ea9 100644 --- a/internal/platform/mmap_test.go +++ b/internal/platform/mmap_test.go @@ -3,7 +3,7 @@ package platform import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_MmapCodeSegment(t *testing.T) { diff --git a/internal/platform/path_test.go b/internal/platform/path_test.go index e306c4c1..27ed6b0d 100644 --- a/internal/platform/path_test.go +++ b/internal/platform/path_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestToPosixPath(t *testing.T) { diff --git a/internal/platform/platform_test.go b/internal/platform/platform_test.go index 5cdce3f8..26fb3712 100644 --- a/internal/platform/platform_test.go +++ b/internal/platform/platform_test.go @@ -4,7 +4,7 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_archRequirementsVerified(t *testing.T) { diff --git a/internal/platform/time.go b/internal/platform/time.go index fa9da1ac..6772e640 100644 --- a/internal/platform/time.go +++ b/internal/platform/time.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "time" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) const ( diff --git a/internal/platform/time_test.go b/internal/platform/time_test.go index 8454a714..7438f167 100644 --- a/internal/platform/time_test.go +++ b/internal/platform/time_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NewFakeWalltime(t *testing.T) { diff --git a/internal/sock/sock.go b/internal/sock/sock.go index ca17aa39..6ee49df3 100644 --- a/internal/sock/sock.go +++ b/internal/sock/sock.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // TCPSock is a pseudo-file representing a TCP socket. diff --git a/internal/sys/fs.go b/internal/sys/fs.go index 332a9526..0a6b4bfb 100644 --- a/internal/sys/fs.go +++ b/internal/sys/fs.go @@ -5,11 +5,11 @@ import ( "io/fs" "net" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/descriptor" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/internal/sysfs" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/descriptor" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/internal/sysfs" ) const ( diff --git a/internal/sys/fs_test.go b/internal/sys/fs_test.go index 1719dae3..d8c60d11 100644 --- a/internal/sys/fs_test.go +++ b/internal/sys/fs_test.go @@ -10,11 +10,11 @@ import ( "testing" gofstest "testing/fstest" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/require" ) //go:embed testdata diff --git a/internal/sys/lazy.go b/internal/sys/lazy.go index fe233d29..e940c569 100644 --- a/internal/sys/lazy.go +++ b/internal/sys/lazy.go @@ -1,9 +1,9 @@ package sys import ( - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) // compile-time check to ensure lazyDir implements sys.File. diff --git a/internal/sys/stdio.go b/internal/sys/stdio.go index 32c33661..fcbb5e58 100644 --- a/internal/sys/stdio.go +++ b/internal/sys/stdio.go @@ -4,10 +4,10 @@ import ( "io" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/sys" ) // StdinFile is a fs.ModeDevice file for use implementing FdStdin. diff --git a/internal/sys/stdio_test.go b/internal/sys/stdio_test.go index 0f2b321c..6aafd14d 100644 --- a/internal/sys/stdio_test.go +++ b/internal/sys/stdio_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestStdio(t *testing.T) { diff --git a/internal/sys/sys.go b/internal/sys/sys.go index 12279ee4..dde3465d 100644 --- a/internal/sys/sys.go +++ b/internal/sys/sys.go @@ -7,9 +7,9 @@ import ( "net" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/sys" ) // Context holds module-scoped system resources currently only supported by diff --git a/internal/sys/sys_test.go b/internal/sys/sys_test.go index 5949d27b..e2eb353c 100644 --- a/internal/sys/sys_test.go +++ b/internal/sys/sys_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestContext_WalltimeNanos(t *testing.T) { diff --git a/internal/sysfs/adapter.go b/internal/sysfs/adapter.go index 51a9a548..2f811d97 100644 --- a/internal/sysfs/adapter.go +++ b/internal/sysfs/adapter.go @@ -5,8 +5,8 @@ import ( "io/fs" "path" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) type AdaptFS struct { diff --git a/internal/sysfs/adapter_test.go b/internal/sysfs/adapter_test.go index 75b4f3b1..1d3338c8 100644 --- a/internal/sysfs/adapter_test.go +++ b/internal/sysfs/adapter_test.go @@ -11,10 +11,10 @@ import ( "syscall" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestAdaptFS_MkDir(t *testing.T) { diff --git a/internal/sysfs/bench_test.go b/internal/sysfs/bench_test.go index 34620972..0ee7a9de 100644 --- a/internal/sysfs/bench_test.go +++ b/internal/sysfs/bench_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func BenchmarkFsFileUtimesNs(b *testing.B) { diff --git a/internal/sysfs/datasync_linux.go b/internal/sysfs/datasync_linux.go index c37e698d..4361e208 100644 --- a/internal/sysfs/datasync_linux.go +++ b/internal/sysfs/datasync_linux.go @@ -6,7 +6,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func datasync(f *os.File) sys.Errno { diff --git a/internal/sysfs/datasync_unsupported.go b/internal/sysfs/datasync_unsupported.go index aa05719b..06fbba84 100644 --- a/internal/sysfs/datasync_unsupported.go +++ b/internal/sysfs/datasync_unsupported.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func datasync(f *os.File) sys.Errno { diff --git a/internal/sysfs/dir.go b/internal/sysfs/dir.go index f9823287..46a3d3ae 100644 --- a/internal/sysfs/dir.go +++ b/internal/sysfs/dir.go @@ -3,7 +3,7 @@ package sysfs import ( "io" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func adjustReaddirErr(f sys.File, isClosed bool, err error) sys.Errno { diff --git a/internal/sysfs/dir_test.go b/internal/sysfs/dir_test.go index 8229bdcb..c51e6a08 100644 --- a/internal/sysfs/dir_test.go +++ b/internal/sysfs/dir_test.go @@ -8,10 +8,10 @@ import ( "sort" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/sysfs" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/sysfs" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFSFileReaddir(t *testing.T) { diff --git a/internal/sysfs/dirfs.go b/internal/sysfs/dirfs.go index 05d5b647..69cf5212 100644 --- a/internal/sysfs/dirfs.go +++ b/internal/sysfs/dirfs.go @@ -4,9 +4,9 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/sys" ) func DirFS(dir string) experimentalsys.FS { diff --git a/internal/sysfs/dirfs_test.go b/internal/sysfs/dirfs_test.go index d2826898..451d395a 100644 --- a/internal/sysfs/dirfs_test.go +++ b/internal/sysfs/dirfs_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestDirFS(t *testing.T) { diff --git a/internal/sysfs/file.go b/internal/sysfs/file.go index 9a77205b..7be23a88 100644 --- a/internal/sysfs/file.go +++ b/internal/sysfs/file.go @@ -6,9 +6,9 @@ import ( "os" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) func NewStdioFile(stdin bool, f fs.File) (fsapi.File, error) { diff --git a/internal/sysfs/file_test.go b/internal/sysfs/file_test.go index b27b2bc4..6618cf56 100644 --- a/internal/sysfs/file_test.go +++ b/internal/sysfs/file_test.go @@ -10,11 +10,11 @@ import ( "testing" gofstest "testing/fstest" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) //go:embed file_test.go diff --git a/internal/sysfs/file_unix.go b/internal/sysfs/file_unix.go index 92eaf354..42781ffc 100644 --- a/internal/sysfs/file_unix.go +++ b/internal/sysfs/file_unix.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/file_unsupported.go b/internal/sysfs/file_unsupported.go index e74a8e4d..e48993a9 100644 --- a/internal/sysfs/file_unsupported.go +++ b/internal/sysfs/file_unsupported.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/file_windows.go b/internal/sysfs/file_windows.go index 3ad9648e..60d0a1c7 100644 --- a/internal/sysfs/file_windows.go +++ b/internal/sysfs/file_windows.go @@ -4,7 +4,7 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens.go b/internal/sysfs/futimens.go index 1f670ca1..2479c7c8 100644 --- a/internal/sysfs/futimens.go +++ b/internal/sysfs/futimens.go @@ -6,7 +6,7 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func timesToPtr(times *[2]syscall.Timespec) unsafe.Pointer { //nolint:unused diff --git a/internal/sysfs/futimens_darwin.go b/internal/sysfs/futimens_darwin.go index 88e4008f..046662c6 100644 --- a/internal/sysfs/futimens_darwin.go +++ b/internal/sysfs/futimens_darwin.go @@ -4,7 +4,7 @@ import ( "syscall" _ "unsafe" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens_linux.go b/internal/sysfs/futimens_linux.go index 3ec68537..b24b5ec0 100644 --- a/internal/sysfs/futimens_linux.go +++ b/internal/sysfs/futimens_linux.go @@ -5,7 +5,7 @@ import ( "unsafe" _ "unsafe" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) const ( diff --git a/internal/sysfs/futimens_test.go b/internal/sysfs/futimens_test.go index 5e690b0d..f2383af6 100644 --- a/internal/sysfs/futimens_test.go +++ b/internal/sysfs/futimens_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUtimens(t *testing.T) { diff --git a/internal/sysfs/futimens_unsupported.go b/internal/sysfs/futimens_unsupported.go index c78a16b4..892aaa0a 100644 --- a/internal/sysfs/futimens_unsupported.go +++ b/internal/sysfs/futimens_unsupported.go @@ -3,7 +3,7 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func utimens(path string, atim, mtim int64) sys.Errno { diff --git a/internal/sysfs/futimens_windows.go b/internal/sysfs/futimens_windows.go index 3a5289b7..d62eec22 100644 --- a/internal/sysfs/futimens_windows.go +++ b/internal/sysfs/futimens_windows.go @@ -3,8 +3,8 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" ) func utimens(path string, atim, mtim int64) sys.Errno { diff --git a/internal/sysfs/ino.go b/internal/sysfs/ino.go index 703f1136..dca629d4 100644 --- a/internal/sysfs/ino.go +++ b/internal/sysfs/ino.go @@ -6,8 +6,8 @@ import ( "io/fs" "syscall" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func inoFromFileInfo(_ string, info fs.FileInfo) (sys.Inode, experimentalsys.Errno) { diff --git a/internal/sysfs/ino_plan9.go b/internal/sysfs/ino_plan9.go index 9c669a47..230beee8 100644 --- a/internal/sysfs/ino_plan9.go +++ b/internal/sysfs/ino_plan9.go @@ -3,8 +3,8 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func inoFromFileInfo(_ string, info fs.FileInfo) (sys.Inode, experimentalsys.Errno) { diff --git a/internal/sysfs/ino_windows.go b/internal/sysfs/ino_windows.go index d163b360..f04d3777 100644 --- a/internal/sysfs/ino_windows.go +++ b/internal/sysfs/ino_windows.go @@ -4,8 +4,8 @@ import ( "io/fs" "path" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // inoFromFileInfo uses stat to get the inode information of the file. diff --git a/internal/sysfs/nonblock_plan9.go b/internal/sysfs/nonblock_plan9.go index 8e94e592..ac3df6d6 100644 --- a/internal/sysfs/nonblock_plan9.go +++ b/internal/sysfs/nonblock_plan9.go @@ -1,6 +1,6 @@ package sysfs -import "github.com/tetratelabs/wazero/experimental/sys" +import "github.com/wasilibs/wazerox/experimental/sys" func setNonblock(fd uintptr, enable bool) sys.Errno { return sys.ENOSYS diff --git a/internal/sysfs/nonblock_unix.go b/internal/sysfs/nonblock_unix.go index 07fb15cf..c341f33b 100644 --- a/internal/sysfs/nonblock_unix.go +++ b/internal/sysfs/nonblock_unix.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func setNonblock(fd uintptr, enable bool) sys.Errno { diff --git a/internal/sysfs/nonblock_windows.go b/internal/sysfs/nonblock_windows.go index eb38ea5a..70d7b17a 100644 --- a/internal/sysfs/nonblock_windows.go +++ b/internal/sysfs/nonblock_windows.go @@ -4,7 +4,7 @@ import ( "io/fs" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func setNonblock(fd uintptr, enable bool) sys.Errno { diff --git a/internal/sysfs/oflag.go b/internal/sysfs/oflag.go index be6d2c35..f77b8c26 100644 --- a/internal/sysfs/oflag.go +++ b/internal/sysfs/oflag.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // toOsOpenFlag converts the input to the flag parameter of os.OpenFile diff --git a/internal/sysfs/oflag_test.go b/internal/sysfs/oflag_test.go index 575a0373..4411b201 100644 --- a/internal/sysfs/oflag_test.go +++ b/internal/sysfs/oflag_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_toOsOpenFlag doesn't use subtests to reduce volume of verbose output, diff --git a/internal/sysfs/open_file_darwin.go b/internal/sysfs/open_file_darwin.go index a4f54ca2..96656561 100644 --- a/internal/sysfs/open_file_darwin.go +++ b/internal/sysfs/open_file_darwin.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK diff --git a/internal/sysfs/open_file_freebsd.go b/internal/sysfs/open_file_freebsd.go index 42adaa21..bc00fea0 100644 --- a/internal/sysfs/open_file_freebsd.go +++ b/internal/sysfs/open_file_freebsd.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_NOFOLLOW | sys.O_NONBLOCK diff --git a/internal/sysfs/open_file_linux.go b/internal/sysfs/open_file_linux.go index 7f491548..509a7b43 100644 --- a/internal/sysfs/open_file_linux.go +++ b/internal/sysfs/open_file_linux.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK | sys.O_RSYNC diff --git a/internal/sysfs/open_file_notwindows.go b/internal/sysfs/open_file_notwindows.go index 9ae1e2bc..f6d1c5a4 100644 --- a/internal/sysfs/open_file_notwindows.go +++ b/internal/sysfs/open_file_notwindows.go @@ -6,7 +6,7 @@ import ( "io/fs" "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // openFile is like os.OpenFile except it accepts a sys.Oflag and returns diff --git a/internal/sysfs/open_file_sun.go b/internal/sysfs/open_file_sun.go index bdf7dd84..29b4e7eb 100644 --- a/internal/sysfs/open_file_sun.go +++ b/internal/sysfs/open_file_sun.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.O_DIRECTORY | sys.O_DSYNC | sys.O_NOFOLLOW | sys.O_NONBLOCK | sys.O_RSYNC diff --git a/internal/sysfs/open_file_test.go b/internal/sysfs/open_file_test.go index 1b4ea292..5ae9cc39 100644 --- a/internal/sysfs/open_file_test.go +++ b/internal/sysfs/open_file_test.go @@ -6,8 +6,8 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestOpenFile(t *testing.T) { diff --git a/internal/sysfs/open_file_unsupported.go b/internal/sysfs/open_file_unsupported.go index 9f7a6d08..b2def11f 100644 --- a/internal/sysfs/open_file_unsupported.go +++ b/internal/sysfs/open_file_unsupported.go @@ -3,7 +3,7 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) const supportedSyscallOflag = sys.Oflag(0) diff --git a/internal/sysfs/open_file_windows.go b/internal/sysfs/open_file_windows.go index bcfbfbcd..b43a1741 100644 --- a/internal/sysfs/open_file_windows.go +++ b/internal/sysfs/open_file_windows.go @@ -7,8 +7,8 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" ) func openFile(path string, oflag sys.Oflag, perm fs.FileMode) (*os.File, sys.Errno) { diff --git a/internal/sysfs/osfile.go b/internal/sysfs/osfile.go index 13bd418f..a5a9afa3 100644 --- a/internal/sysfs/osfile.go +++ b/internal/sysfs/osfile.go @@ -6,9 +6,9 @@ import ( "os" "runtime" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/sys" ) func newOsFile(path string, flag experimentalsys.Oflag, perm fs.FileMode, f *os.File) fsapi.File { diff --git a/internal/sysfs/poll.go b/internal/sysfs/poll.go index f5c98295..c25ed0aa 100644 --- a/internal/sysfs/poll.go +++ b/internal/sysfs/poll.go @@ -3,8 +3,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" ) // poll implements `Poll` as documented on sys.File via a file descriptor. diff --git a/internal/sysfs/poll_darwin.go b/internal/sysfs/poll_darwin.go index 1f7f8909..d3f830f5 100644 --- a/internal/sysfs/poll_darwin.go +++ b/internal/sysfs/poll_darwin.go @@ -3,7 +3,7 @@ package sysfs import ( "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // pollFd is the struct to query for file descriptor events using poll. diff --git a/internal/sysfs/poll_linux.go b/internal/sysfs/poll_linux.go index dab7bb2c..007d4c63 100644 --- a/internal/sysfs/poll_linux.go +++ b/internal/sysfs/poll_linux.go @@ -5,7 +5,7 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // pollFd is the struct to query for file descriptor events using poll. diff --git a/internal/sysfs/poll_test.go b/internal/sysfs/poll_test.go index 6f6b3559..036e8ac0 100644 --- a/internal/sysfs/poll_test.go +++ b/internal/sysfs/poll_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_poll(t *testing.T) { diff --git a/internal/sysfs/poll_unsupported.go b/internal/sysfs/poll_unsupported.go index ebe8a6fa..b7253f4b 100644 --- a/internal/sysfs/poll_unsupported.go +++ b/internal/sysfs/poll_unsupported.go @@ -3,8 +3,8 @@ package sysfs import ( - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" ) // poll implements `Poll` as documented on fsapi.File via a file descriptor. diff --git a/internal/sysfs/poll_windows.go b/internal/sysfs/poll_windows.go index 82c8b2ba..010e8cb1 100644 --- a/internal/sysfs/poll_windows.go +++ b/internal/sysfs/poll_windows.go @@ -5,7 +5,7 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) var ( diff --git a/internal/sysfs/poll_windows_test.go b/internal/sysfs/poll_windows_test.go index 46e3e9a2..04796ecc 100644 --- a/internal/sysfs/poll_windows_test.go +++ b/internal/sysfs/poll_windows_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestPoll_Windows(t *testing.T) { diff --git a/internal/sysfs/readfs.go b/internal/sysfs/readfs.go index 59e331a2..d229f0cf 100644 --- a/internal/sysfs/readfs.go +++ b/internal/sysfs/readfs.go @@ -3,7 +3,7 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" ) type ReadFS struct { diff --git a/internal/sysfs/readfs_test.go b/internal/sysfs/readfs_test.go index a8e21f1d..247c3dca 100644 --- a/internal/sysfs/readfs_test.go +++ b/internal/sysfs/readfs_test.go @@ -6,9 +6,9 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fstest" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestNewReadFS(t *testing.T) { diff --git a/internal/sysfs/rename.go b/internal/sysfs/rename.go index f7d84ef7..e761c966 100644 --- a/internal/sysfs/rename.go +++ b/internal/sysfs/rename.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/rename_plan9.go b/internal/sysfs/rename_plan9.go index 474cc759..98e9b352 100644 --- a/internal/sysfs/rename_plan9.go +++ b/internal/sysfs/rename_plan9.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/rename_test.go b/internal/sysfs/rename_test.go index cc057e2f..04feae32 100644 --- a/internal/sysfs/rename_test.go +++ b/internal/sysfs/rename_test.go @@ -5,8 +5,8 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestRename(t *testing.T) { diff --git a/internal/sysfs/rename_windows.go b/internal/sysfs/rename_windows.go index 5e810223..e66fa02e 100644 --- a/internal/sysfs/rename_windows.go +++ b/internal/sysfs/rename_windows.go @@ -4,7 +4,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func rename(from, to string) sys.Errno { diff --git a/internal/sysfs/sock.go b/internal/sysfs/sock.go index af739a90..133996a0 100644 --- a/internal/sysfs/sock.go +++ b/internal/sysfs/sock.go @@ -4,9 +4,9 @@ import ( "net" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" + "github.com/wasilibs/wazerox/sys" ) // NewTCPListenerFile creates a socketapi.TCPSock for a given *net.TCPListener. diff --git a/internal/sysfs/sock_test.go b/internal/sysfs/sock_test.go index 82b8ab56..bcf38e12 100644 --- a/internal/sysfs/sock_test.go +++ b/internal/sysfs/sock_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestTcpConnFile_Write(t *testing.T) { diff --git a/internal/sysfs/sock_unix.go b/internal/sysfs/sock_unix.go index 3698f560..5084c2fc 100644 --- a/internal/sysfs/sock_unix.go +++ b/internal/sysfs/sock_unix.go @@ -6,9 +6,9 @@ import ( "net" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) // MSG_PEEK is the constant syscall.MSG_PEEK diff --git a/internal/sysfs/sock_unsupported.go b/internal/sysfs/sock_unsupported.go index 76a10a8b..e9e6dfda 100644 --- a/internal/sysfs/sock_unsupported.go +++ b/internal/sysfs/sock_unsupported.go @@ -5,8 +5,8 @@ package sysfs import ( "net" - "github.com/tetratelabs/wazero/experimental/sys" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) // MSG_PEEK is a filler value. diff --git a/internal/sysfs/sock_windows.go b/internal/sysfs/sock_windows.go index ed275e62..6bca6cd3 100644 --- a/internal/sysfs/sock_windows.go +++ b/internal/sysfs/sock_windows.go @@ -7,9 +7,9 @@ import ( "syscall" "unsafe" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/fsapi" - socketapi "github.com/tetratelabs/wazero/internal/sock" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/fsapi" + socketapi "github.com/wasilibs/wazerox/internal/sock" ) const ( diff --git a/internal/sysfs/stat.go b/internal/sysfs/stat.go index 2d973b16..fdbcffbc 100644 --- a/internal/sysfs/stat.go +++ b/internal/sysfs/stat.go @@ -3,8 +3,8 @@ package sysfs import ( "io/fs" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) func defaultStatFile(f fs.File) (sys.Stat_t, experimentalsys.Errno) { diff --git a/internal/sysfs/stat_bsd.go b/internal/sysfs/stat_bsd.go index 254e204c..e6982bfe 100644 --- a/internal/sysfs/stat_bsd.go +++ b/internal/sysfs/stat_bsd.go @@ -6,8 +6,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is true because even though os.File filters out dot diff --git a/internal/sysfs/stat_linux.go b/internal/sysfs/stat_linux.go index fd289756..80f44d35 100644 --- a/internal/sysfs/stat_linux.go +++ b/internal/sysfs/stat_linux.go @@ -9,8 +9,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is true because even though os.File filters out dot diff --git a/internal/sysfs/stat_test.go b/internal/sysfs/stat_test.go index 8dbaf5eb..3ae76da7 100644 --- a/internal/sysfs/stat_test.go +++ b/internal/sysfs/stat_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func TestStat(t *testing.T) { diff --git a/internal/sysfs/stat_unsupported.go b/internal/sysfs/stat_unsupported.go index 4b05a897..393d8962 100644 --- a/internal/sysfs/stat_unsupported.go +++ b/internal/sysfs/stat_unsupported.go @@ -6,8 +6,8 @@ import ( "io/fs" "os" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // Note: go:build constraints must be the same as /sys.stat_unsupported.go for diff --git a/internal/sysfs/stat_windows.go b/internal/sysfs/stat_windows.go index 4456dd78..cc6ef1e1 100644 --- a/internal/sysfs/stat_windows.go +++ b/internal/sysfs/stat_windows.go @@ -6,8 +6,8 @@ import ( "io/fs" "syscall" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/sys" ) // dirNlinkIncludesDot is false because Windows does not return dot entries. diff --git a/internal/sysfs/sync.go b/internal/sysfs/sync.go index 86f9a086..e5289ca8 100644 --- a/internal/sysfs/sync.go +++ b/internal/sysfs/sync.go @@ -5,7 +5,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func fsync(f *os.File) sys.Errno { diff --git a/internal/sysfs/sync_windows.go b/internal/sysfs/sync_windows.go index f288eb25..14d2fd99 100644 --- a/internal/sysfs/sync_windows.go +++ b/internal/sysfs/sync_windows.go @@ -3,7 +3,7 @@ package sysfs import ( "os" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func fsync(f *os.File) sys.Errno { diff --git a/internal/sysfs/sysfs_test.go b/internal/sysfs/sysfs_test.go index 75526e56..27e99dff 100644 --- a/internal/sysfs/sysfs_test.go +++ b/internal/sysfs/sysfs_test.go @@ -10,10 +10,10 @@ import ( "sort" "testing" - experimentalsys "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + experimentalsys "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func testOpen_O_RDWR(t *testing.T, tmpDir string, testFS experimentalsys.FS) { diff --git a/internal/sysfs/unlink.go b/internal/sysfs/unlink.go index 4f7dbe3f..9b795c35 100644 --- a/internal/sysfs/unlink.go +++ b/internal/sysfs/unlink.go @@ -5,7 +5,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) (errno sys.Errno) { diff --git a/internal/sysfs/unlink_plan9.go b/internal/sysfs/unlink_plan9.go index 16ed06ab..3e09b15c 100644 --- a/internal/sysfs/unlink_plan9.go +++ b/internal/sysfs/unlink_plan9.go @@ -3,7 +3,7 @@ package sysfs import ( "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) sys.Errno { diff --git a/internal/sysfs/unlink_test.go b/internal/sysfs/unlink_test.go index 0ee30430..863977a6 100644 --- a/internal/sysfs/unlink_test.go +++ b/internal/sysfs/unlink_test.go @@ -5,8 +5,8 @@ import ( "path" "testing" - "github.com/tetratelabs/wazero/experimental/sys" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestUnlink(t *testing.T) { diff --git a/internal/sysfs/unlink_windows.go b/internal/sysfs/unlink_windows.go index be31c7b9..3cde8e77 100644 --- a/internal/sysfs/unlink_windows.go +++ b/internal/sysfs/unlink_windows.go @@ -4,7 +4,7 @@ import ( "os" "syscall" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func unlink(name string) sys.Errno { diff --git a/internal/testing/binaryencoding/code.go b/internal/testing/binaryencoding/code.go index 87c2d522..845aaffb 100644 --- a/internal/testing/binaryencoding/code.go +++ b/internal/testing/binaryencoding/code.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeCode returns the wasm.Code encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/code_test.go b/internal/testing/binaryencoding/code_test.go index f398f0f1..eaa00f7a 100644 --- a/internal/testing/binaryencoding/code_test.go +++ b/internal/testing/binaryencoding/code_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var addLocalZeroLocalTwo = []byte{wasm.OpcodeLocalGet, 0, wasm.OpcodeLocalGet, 2, wasm.OpcodeI32Add, wasm.OpcodeEnd} diff --git a/internal/testing/binaryencoding/const_expr.go b/internal/testing/binaryencoding/const_expr.go index f4c14807..fcf304ad 100644 --- a/internal/testing/binaryencoding/const_expr.go +++ b/internal/testing/binaryencoding/const_expr.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) func encodeConstantExpression(expr wasm.ConstantExpression) (ret []byte) { diff --git a/internal/testing/binaryencoding/data.go b/internal/testing/binaryencoding/data.go index 220c80e1..5b22e2c7 100644 --- a/internal/testing/binaryencoding/data.go +++ b/internal/testing/binaryencoding/data.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func encodeDataSegment(d *wasm.DataSegment) (ret []byte) { diff --git a/internal/testing/binaryencoding/element.go b/internal/testing/binaryencoding/element.go index 5d56e6a5..4ffe2dcf 100644 --- a/internal/testing/binaryencoding/element.go +++ b/internal/testing/binaryencoding/element.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func ensureElementKindFuncRef(r *bytes.Reader) error { diff --git a/internal/testing/binaryencoding/element_test.go b/internal/testing/binaryencoding/element_test.go index d1f93023..aa98b1f0 100644 --- a/internal/testing/binaryencoding/element_test.go +++ b/internal/testing/binaryencoding/element_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func Test_ensureElementKindFuncRef(t *testing.T) { diff --git a/internal/testing/binaryencoding/encoder.go b/internal/testing/binaryencoding/encoder.go index 5d0499d3..f2d5f6bc 100644 --- a/internal/testing/binaryencoding/encoder.go +++ b/internal/testing/binaryencoding/encoder.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) var sizePrefixedName = []byte{4, 'n', 'a', 'm', 'e'} diff --git a/internal/testing/binaryencoding/encoder_test.go b/internal/testing/binaryencoding/encoder_test.go index 588ffef1..0a06d962 100644 --- a/internal/testing/binaryencoding/encoder_test.go +++ b/internal/testing/binaryencoding/encoder_test.go @@ -3,9 +3,9 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestModule_Encode(t *testing.T) { diff --git a/internal/testing/binaryencoding/export.go b/internal/testing/binaryencoding/export.go index 5bedf446..045a0bb1 100644 --- a/internal/testing/binaryencoding/export.go +++ b/internal/testing/binaryencoding/export.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeExport returns the wasm.Export encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/export_test.go b/internal/testing/binaryencoding/export_test.go index 7c5ba2bd..b7c5dfcd 100644 --- a/internal/testing/binaryencoding/export_test.go +++ b/internal/testing/binaryencoding/export_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeExport(t *testing.T) { diff --git a/internal/testing/binaryencoding/function.go b/internal/testing/binaryencoding/function.go index a31be4b6..b8308069 100644 --- a/internal/testing/binaryencoding/function.go +++ b/internal/testing/binaryencoding/function.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeFunctionType returns the wasm.FunctionType encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/global.go b/internal/testing/binaryencoding/global.go index e4728918..62ad343c 100644 --- a/internal/testing/binaryencoding/global.go +++ b/internal/testing/binaryencoding/global.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeGlobal returns the wasm.Global encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/global_test.go b/internal/testing/binaryencoding/global_test.go index f29f68e6..2f22f5ff 100644 --- a/internal/testing/binaryencoding/global_test.go +++ b/internal/testing/binaryencoding/global_test.go @@ -3,9 +3,9 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeGlobal(t *testing.T) { diff --git a/internal/testing/binaryencoding/import.go b/internal/testing/binaryencoding/import.go index 8abffde2..a20f9f67 100644 --- a/internal/testing/binaryencoding/import.go +++ b/internal/testing/binaryencoding/import.go @@ -3,8 +3,8 @@ package binaryencoding import ( "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeImport returns the wasm.Import encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/import_test.go b/internal/testing/binaryencoding/import_test.go index d89ca0cd..60489f3e 100644 --- a/internal/testing/binaryencoding/import_test.go +++ b/internal/testing/binaryencoding/import_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeImport(t *testing.T) { diff --git a/internal/testing/binaryencoding/limits.go b/internal/testing/binaryencoding/limits.go index ebc2421c..59479d6b 100644 --- a/internal/testing/binaryencoding/limits.go +++ b/internal/testing/binaryencoding/limits.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/internal/leb128" ) // EncodeLimitsType returns the `limitsType` (min, max) encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/memory.go b/internal/testing/binaryencoding/memory.go index 2c853330..d422607c 100644 --- a/internal/testing/binaryencoding/memory.go +++ b/internal/testing/binaryencoding/memory.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeMemory returns the wasm.Memory encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/names.go b/internal/testing/binaryencoding/names.go index 7a337020..53e7be8f 100644 --- a/internal/testing/binaryencoding/names.go +++ b/internal/testing/binaryencoding/names.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/testing/binaryencoding/names_test.go b/internal/testing/binaryencoding/names_test.go index 20c39c3b..2b62a538 100644 --- a/internal/testing/binaryencoding/names_test.go +++ b/internal/testing/binaryencoding/names_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeNameSectionData(t *testing.T) { diff --git a/internal/testing/binaryencoding/section.go b/internal/testing/binaryencoding/section.go index 531c6fce..b1f214a2 100644 --- a/internal/testing/binaryencoding/section.go +++ b/internal/testing/binaryencoding/section.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // encodeSection encodes the sectionID, the size of its contents in bytes, followed by the contents. diff --git a/internal/testing/binaryencoding/section_test.go b/internal/testing/binaryencoding/section_test.go index 9cde8eb6..cfaaac2e 100644 --- a/internal/testing/binaryencoding/section_test.go +++ b/internal/testing/binaryencoding/section_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeFunctionSection(t *testing.T) { diff --git a/internal/testing/binaryencoding/table.go b/internal/testing/binaryencoding/table.go index 57f83db7..2109de8b 100644 --- a/internal/testing/binaryencoding/table.go +++ b/internal/testing/binaryencoding/table.go @@ -1,7 +1,7 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // EncodeTable returns the wasm.Table encoded in WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/testing/binaryencoding/value.go b/internal/testing/binaryencoding/value.go index 9ec583e9..91e813be 100644 --- a/internal/testing/binaryencoding/value.go +++ b/internal/testing/binaryencoding/value.go @@ -1,8 +1,8 @@ package binaryencoding import ( - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) var noValType = []byte{0} diff --git a/internal/testing/binaryencoding/value_test.go b/internal/testing/binaryencoding/value_test.go index b3110474..68e070e0 100644 --- a/internal/testing/binaryencoding/value_test.go +++ b/internal/testing/binaryencoding/value_test.go @@ -3,8 +3,8 @@ package binaryencoding import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeValTypes(t *testing.T) { diff --git a/internal/testing/fs/fs_test.go b/internal/testing/fs/fs_test.go index 39e31de0..f4828112 100644 --- a/internal/testing/fs/fs_test.go +++ b/internal/testing/fs/fs_test.go @@ -4,7 +4,7 @@ import ( "io/fs" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestFS(t *testing.T) { diff --git a/internal/testing/maintester/maintester.go b/internal/testing/maintester/maintester.go index 5ed844f2..02ea6103 100644 --- a/internal/testing/maintester/maintester.go +++ b/internal/testing/maintester/maintester.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMain(t *testing.T, main func(), args ...string) (stdout, stderr string) { diff --git a/internal/testing/proxy/proxy.go b/internal/testing/proxy/proxy.go index 4e9edb96..74b91d6a 100644 --- a/internal/testing/proxy/proxy.go +++ b/internal/testing/proxy/proxy.go @@ -1,13 +1,13 @@ package proxy import ( - "github.com/tetratelabs/wazero" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/experimental/logging" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/wasm" + wazero "github.com/wasilibs/wazerox" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/experimental/logging" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/wasm" ) const proxyModuleName = "internal/testing/proxy/proxy.go" diff --git a/internal/testing/require/require.go b/internal/testing/require/require.go index eabfbe7d..d53aad0d 100644 --- a/internal/testing/require/require.go +++ b/internal/testing/require/require.go @@ -16,7 +16,7 @@ import ( "unicode" "unicode/utf8" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // TestingT is an interface wrapper of functions used in TestingT diff --git a/internal/testing/require/require_errno_test.go b/internal/testing/require/require_errno_test.go index 9dbbe0c2..28a74142 100644 --- a/internal/testing/require/require_errno_test.go +++ b/internal/testing/require/require_errno_test.go @@ -5,7 +5,7 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestEqualErrno(t *testing.T) { diff --git a/internal/u32/u32_test.go b/internal/u32/u32_test.go index 7d0e2dc1..aca67564 100644 --- a/internal/u32/u32_test.go +++ b/internal/u32/u32_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBytes(t *testing.T) { diff --git a/internal/u64/u64_test.go b/internal/u64/u64_test.go index 576a79a7..d3513036 100644 --- a/internal/u64/u64_test.go +++ b/internal/u64/u64_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestBytes(t *testing.T) { diff --git a/internal/version/testdata/go.mod b/internal/version/testdata/go.mod index 956c1476..9a1a4ae5 100644 --- a/internal/version/testdata/go.mod +++ b/internal/version/testdata/go.mod @@ -1,7 +1,7 @@ -module github.com/tetratelabs/wazero/internal/version/testdata +module github.com/wasilibs/wazerox/internal/version/testdata go 1.19 -require github.com/tetratelabs/wazero v0.0.0-20220818123113-1948909ec0b1 // indirect +require github.com/wasilibs/wazerox v0.0.0-20220818123113-1948909ec0b1 // indirect -replace github.com/tetratelabs/wazero => ../../.. +replace github.com/wasilibs/wazerox => ../../.. diff --git a/internal/version/testdata/main.go b/internal/version/testdata/main.go index 32adeb3e..41c44e67 100644 --- a/internal/version/testdata/main.go +++ b/internal/version/testdata/main.go @@ -2,5 +2,5 @@ package main // Force importing wazero here, so that we can see the actual wazero version in the main_test.go. import ( - _ "github.com/tetratelabs/wazero/internal/version" + _ "github.com/wasilibs/wazerox/internal/version" ) diff --git a/internal/version/testdata/main_test.go b/internal/version/testdata/main_test.go index 044d9662..32960851 100644 --- a/internal/version/testdata/main_test.go +++ b/internal/version/testdata/main_test.go @@ -3,8 +3,8 @@ package main import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/version" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/version" ) // TestGetWazeroVersion ensures that GetWazeroVersion returns the version of wazero in the go.mod in the diff --git a/internal/version/version.go b/internal/version/version.go index 9261df0f..5ee69891 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -13,9 +13,9 @@ var version string // GetWazeroVersion returns the current version of wazero either in the go.mod or set by ldflag for wazero CLI. // -// If this is not CLI, this assumes that downstream users of wazero imports wazero as "github.com/tetratelabs/wazero". +// If this is not CLI, this assumes that downstream users of wazero imports wazero as "github.com/wasilibs/wazerox". // To be precise, the returned string matches the require statement there. -// For example, if the go.mod has "require github.com/tetratelabs/wazero 0.1.2-12314124-abcd", +// For example, if the go.mod has "require github.com/wasilibs/wazerox 0.1.2-12314124-abcd", // then this returns "0.1.2-12314124-abcd". // // Note: this is tested in ./testdata/main_test.go with a separate go.mod to pretend as the wazero user. @@ -27,8 +27,8 @@ func GetWazeroVersion() (ret string) { info, ok := debug.ReadBuildInfo() if ok { for _, dep := range info.Deps { - // Note: here's the assumption that wazero is imported as github.com/tetratelabs/wazero. - if strings.Contains(dep.Path, "github.com/tetratelabs/wazero") { + // Note: here's the assumption that wazero is imported as github.com/wasilibs/wazerox. + if strings.Contains(dep.Path, "github.com/wasilibs/wazerox") { ret = dep.Version } } diff --git a/internal/wasip1/errno.go b/internal/wasip1/errno.go index 701c2aa4..7e5d081a 100644 --- a/internal/wasip1/errno.go +++ b/internal/wasip1/errno.go @@ -3,7 +3,7 @@ package wasip1 import ( "fmt" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) // Errno is neither uint16 nor an alias for parity with wasm.ValueType. diff --git a/internal/wasip1/errno_test.go b/internal/wasip1/errno_test.go index 961e9fe5..81875c13 100644 --- a/internal/wasip1/errno_test.go +++ b/internal/wasip1/errno_test.go @@ -3,7 +3,7 @@ package wasip1 import ( "testing" - "github.com/tetratelabs/wazero/experimental/sys" + "github.com/wasilibs/wazerox/experimental/sys" ) func TestToErrno(t *testing.T) { diff --git a/internal/wasip1/logging/logging.go b/internal/wasip1/logging/logging.go index d7341a09..ee465e29 100644 --- a/internal/wasip1/logging/logging.go +++ b/internal/wasip1/logging/logging.go @@ -6,10 +6,10 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/sys" - . "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/sys" + . "github.com/wasilibs/wazerox/internal/wasip1" ) var le = binary.LittleEndian diff --git a/internal/wasip1/logging/logging_test.go b/internal/wasip1/logging/logging_test.go index 95d200be..b65ebca1 100644 --- a/internal/wasip1/logging/logging_test.go +++ b/internal/wasip1/logging/logging_test.go @@ -3,11 +3,11 @@ package logging import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/logging" - "github.com/tetratelabs/wazero/internal/testing/require" - . "github.com/tetratelabs/wazero/internal/wasip1" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/logging" + "github.com/wasilibs/wazerox/internal/testing/require" + . "github.com/wasilibs/wazerox/internal/wasip1" + "github.com/wasilibs/wazerox/internal/wasm" ) type testFunctionDefinition struct { diff --git a/internal/wasm/binary/code.go b/internal/wasm/binary/code.go index 2fac9196..f36f5650 100644 --- a/internal/wasm/binary/code.go +++ b/internal/wasm/binary/code.go @@ -6,8 +6,8 @@ import ( "io" "math" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeCode(r *bytes.Reader, codeSectionStart uint64, ret *wasm.Code) (err error) { diff --git a/internal/wasm/binary/const_expr.go b/internal/wasm/binary/const_expr.go index edfc0a08..2529e9cc 100644 --- a/internal/wasm/binary/const_expr.go +++ b/internal/wasm/binary/const_expr.go @@ -5,10 +5,10 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/ieee754" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/ieee754" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeConstantExpression(r *bytes.Reader, enabledFeatures api.CoreFeatures, ret *wasm.ConstantExpression) error { diff --git a/internal/wasm/binary/const_expr_test.go b/internal/wasm/binary/const_expr_test.go index 072c37a6..03be1e1e 100644 --- a/internal/wasm/binary/const_expr_test.go +++ b/internal/wasm/binary/const_expr_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestDecodeConstantExpression(t *testing.T) { diff --git a/internal/wasm/binary/custom.go b/internal/wasm/binary/custom.go index 771f8c32..ce506f4a 100644 --- a/internal/wasm/binary/custom.go +++ b/internal/wasm/binary/custom.go @@ -3,7 +3,7 @@ package binary import ( "bytes" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeCustomSection deserializes the data **not** associated with the "name" key in SectionIDCustom. diff --git a/internal/wasm/binary/data.go b/internal/wasm/binary/data.go index 054ccb3c..ab48ad61 100644 --- a/internal/wasm/binary/data.go +++ b/internal/wasm/binary/data.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) // dataSegmentPrefix represents three types of data segments. diff --git a/internal/wasm/binary/data_test.go b/internal/wasm/binary/data_test.go index f7bf7c41..e7c9a0d6 100644 --- a/internal/wasm/binary/data_test.go +++ b/internal/wasm/binary/data_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_decodeDataSegment(t *testing.T) { diff --git a/internal/wasm/binary/decoder.go b/internal/wasm/binary/decoder.go index c4191dae..f868973e 100644 --- a/internal/wasm/binary/decoder.go +++ b/internal/wasm/binary/decoder.go @@ -7,10 +7,10 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // DecodeModule implements wasm.DecodeModule for the WebAssembly 1.0 (20191205) Binary Format diff --git a/internal/wasm/binary/decoder_test.go b/internal/wasm/binary/decoder_test.go index b3381494..175f8311 100644 --- a/internal/wasm/binary/decoder_test.go +++ b/internal/wasm/binary/decoder_test.go @@ -3,11 +3,11 @@ package binary import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestDecodeModule relies on unit tests for Module.Encode, specifically that the encoding is both known and correct. diff --git a/internal/wasm/binary/element.go b/internal/wasm/binary/element.go index 538b9834..dd52ba0f 100644 --- a/internal/wasm/binary/element.go +++ b/internal/wasm/binary/element.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func ensureElementKindFuncRef(r *bytes.Reader) error { diff --git a/internal/wasm/binary/element_test.go b/internal/wasm/binary/element_test.go index eefa7d12..e22d5842 100644 --- a/internal/wasm/binary/element_test.go +++ b/internal/wasm/binary/element_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_ensureElementKindFuncRef(t *testing.T) { diff --git a/internal/wasm/binary/export.go b/internal/wasm/binary/export.go index 925e9c49..a3b54a5d 100644 --- a/internal/wasm/binary/export.go +++ b/internal/wasm/binary/export.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeExport(r *bytes.Reader, ret *wasm.Export) (err error) { diff --git a/internal/wasm/binary/function.go b/internal/wasm/binary/function.go index bb9e2b64..ab8d9563 100644 --- a/internal/wasm/binary/function.go +++ b/internal/wasm/binary/function.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeFunctionType(enabledFeatures api.CoreFeatures, r *bytes.Reader, ret *wasm.FunctionType) (err error) { diff --git a/internal/wasm/binary/function_test.go b/internal/wasm/binary/function_test.go index 3c8ca3ea..f9172a47 100644 --- a/internal/wasm/binary/function_test.go +++ b/internal/wasm/binary/function_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestFunctionType(t *testing.T) { diff --git a/internal/wasm/binary/global.go b/internal/wasm/binary/global.go index 4e1c16fd..96f34bb5 100644 --- a/internal/wasm/binary/global.go +++ b/internal/wasm/binary/global.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeGlobal returns the api.Global decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/import.go b/internal/wasm/binary/import.go index 39d310c5..b498802e 100644 --- a/internal/wasm/binary/import.go +++ b/internal/wasm/binary/import.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeImport( diff --git a/internal/wasm/binary/import_test.go b/internal/wasm/binary/import_test.go index 11c79841..54db5b34 100644 --- a/internal/wasm/binary/import_test.go +++ b/internal/wasm/binary/import_test.go @@ -3,9 +3,9 @@ package binary import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeImport(t *testing.T) { diff --git a/internal/wasm/binary/limits.go b/internal/wasm/binary/limits.go index ff2d73b5..e42e3f53 100644 --- a/internal/wasm/binary/limits.go +++ b/internal/wasm/binary/limits.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/internal/leb128" ) // decodeLimitsType returns the `limitsType` (min, max) decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/limits_test.go b/internal/wasm/binary/limits_test.go index 7e65b4d6..dbcf913f 100644 --- a/internal/wasm/binary/limits_test.go +++ b/internal/wasm/binary/limits_test.go @@ -6,8 +6,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestLimitsType(t *testing.T) { diff --git a/internal/wasm/binary/memory.go b/internal/wasm/binary/memory.go index 265361ac..e7edd5f7 100644 --- a/internal/wasm/binary/memory.go +++ b/internal/wasm/binary/memory.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeMemory returns the api.Memory decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/memory_test.go b/internal/wasm/binary/memory_test.go index ce26a39b..b637fb99 100644 --- a/internal/wasm/binary/memory_test.go +++ b/internal/wasm/binary/memory_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func Test_newMemorySizer(t *testing.T) { diff --git a/internal/wasm/binary/names.go b/internal/wasm/binary/names.go index 56fb96dc..1c6da8d5 100644 --- a/internal/wasm/binary/names.go +++ b/internal/wasm/binary/names.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) const ( diff --git a/internal/wasm/binary/names_test.go b/internal/wasm/binary/names_test.go index 8e84e218..7bfdf245 100644 --- a/internal/wasm/binary/names_test.go +++ b/internal/wasm/binary/names_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) // TestDecodeNameSection relies on unit tests for NameSection.EncodeData, specifically that the encoding is diff --git a/internal/wasm/binary/section.go b/internal/wasm/binary/section.go index 622ee592..8f88f6f1 100644 --- a/internal/wasm/binary/section.go +++ b/internal/wasm/binary/section.go @@ -5,9 +5,9 @@ import ( "fmt" "io" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeTypeSection(enabledFeatures api.CoreFeatures, r *bytes.Reader) ([]wasm.FunctionType, error) { diff --git a/internal/wasm/binary/section_test.go b/internal/wasm/binary/section_test.go index dcebdbed..5432a20a 100644 --- a/internal/wasm/binary/section_test.go +++ b/internal/wasm/binary/section_test.go @@ -4,10 +4,10 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestTableSection(t *testing.T) { diff --git a/internal/wasm/binary/table.go b/internal/wasm/binary/table.go index 353ec756..2dc61056 100644 --- a/internal/wasm/binary/table.go +++ b/internal/wasm/binary/table.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasm" ) // decodeTable returns the wasm.Table decoded with the WebAssembly 1.0 (20191205) Binary Format. diff --git a/internal/wasm/binary/table_test.go b/internal/wasm/binary/table_test.go index 7543a33c..e5560c98 100644 --- a/internal/wasm/binary/table_test.go +++ b/internal/wasm/binary/table_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestTableType(t *testing.T) { diff --git a/internal/wasm/binary/value.go b/internal/wasm/binary/value.go index 755ee5ea..34db3c3c 100644 --- a/internal/wasm/binary/value.go +++ b/internal/wasm/binary/value.go @@ -7,8 +7,8 @@ import ( "unicode/utf8" "unsafe" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) func decodeValueTypes(r *bytes.Reader, num uint32) ([]wasm.ValueType, error) { diff --git a/internal/wasm/binary/value_test.go b/internal/wasm/binary/value_test.go index b95e0b9e..b99f4416 100644 --- a/internal/wasm/binary/value_test.go +++ b/internal/wasm/binary/value_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestEncodeValTypes(t *testing.T) { diff --git a/internal/wasm/counts_test.go b/internal/wasm/counts_test.go index 6db4fdba..803faa89 100644 --- a/internal/wasm/counts_test.go +++ b/internal/wasm/counts_test.go @@ -3,7 +3,7 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_SectionElementCount(t *testing.T) { diff --git a/internal/wasm/engine.go b/internal/wasm/engine.go index 3d483807..7a5d2fb0 100644 --- a/internal/wasm/engine.go +++ b/internal/wasm/engine.go @@ -3,8 +3,8 @@ package wasm import ( "context" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" ) // Engine is a Store-scoped mechanism to compile functions declared or imported by a module. diff --git a/internal/wasm/func_validation.go b/internal/wasm/func_validation.go index b5390ebe..6dd588eb 100644 --- a/internal/wasm/func_validation.go +++ b/internal/wasm/func_validation.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" ) // The wazero specific limitation described at RATIONALE.md. diff --git a/internal/wasm/func_validation_test.go b/internal/wasm/func_validation_test.go index 57edb5a3..dac0dc36 100644 --- a/internal/wasm/func_validation_test.go +++ b/internal/wasm/func_validation_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_ValidateFunction_validateFunctionWithMaxStackValues(t *testing.T) { diff --git a/internal/wasm/function_definition.go b/internal/wasm/function_definition.go index c5f6e912..cc2e3c7d 100644 --- a/internal/wasm/function_definition.go +++ b/internal/wasm/function_definition.go @@ -1,9 +1,9 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // ImportedFunctions returns the definitions of each imported function. diff --git a/internal/wasm/function_definition_test.go b/internal/wasm/function_definition_test.go index 6e6e92f2..dd46ec36 100644 --- a/internal/wasm/function_definition_test.go +++ b/internal/wasm/function_definition_test.go @@ -3,9 +3,9 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_BuildFunctionDefinitions(t *testing.T) { diff --git a/internal/wasm/global.go b/internal/wasm/global.go index 6320e0de..0fddf22e 100644 --- a/internal/wasm/global.go +++ b/internal/wasm/global.go @@ -1,8 +1,8 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // constantGlobal wraps GlobalInstance to implement api.Global. diff --git a/internal/wasm/global_test.go b/internal/wasm/global_test.go index da2d7a6d..648469a3 100644 --- a/internal/wasm/global_test.go +++ b/internal/wasm/global_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestGlobalTypes(t *testing.T) { diff --git a/internal/wasm/gofunc.go b/internal/wasm/gofunc.go index 9510c258..2c01b1bc 100644 --- a/internal/wasm/gofunc.go +++ b/internal/wasm/gofunc.go @@ -8,7 +8,7 @@ import ( "math" "reflect" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) type paramsKind byte diff --git a/internal/wasm/gofunc_test.go b/internal/wasm/gofunc_test.go index 8b2e8b8c..bc178dc7 100644 --- a/internal/wasm/gofunc_test.go +++ b/internal/wasm/gofunc_test.go @@ -6,8 +6,8 @@ import ( "testing" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) // testCtx is an arbitrary, non-default context. Non-nil also prevents linter errors. diff --git a/internal/wasm/host.go b/internal/wasm/host.go index bca686d1..3d217c54 100644 --- a/internal/wasm/host.go +++ b/internal/wasm/host.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) type HostFuncExporter interface { diff --git a/internal/wasm/host_test.go b/internal/wasm/host_test.go index 55c881cd..d6e77a3c 100644 --- a/internal/wasm/host_test.go +++ b/internal/wasm/host_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - . "github.com/tetratelabs/wazero/internal/wasip1" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + . "github.com/wasilibs/wazerox/internal/wasip1" ) func argsSizesGet(ctx context.Context, mod api.Module, resultArgc, resultArgvBufSize uint32) uint32 { diff --git a/internal/wasm/memory.go b/internal/wasm/memory.go index f39ed1ef..07990ca2 100644 --- a/internal/wasm/memory.go +++ b/internal/wasm/memory.go @@ -11,10 +11,10 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) const ( diff --git a/internal/wasm/memory_definition.go b/internal/wasm/memory_definition.go index 03d6fd30..5f780d67 100644 --- a/internal/wasm/memory_definition.go +++ b/internal/wasm/memory_definition.go @@ -1,8 +1,8 @@ package wasm import ( - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // ImportedMemories implements the same method as documented on wazero.CompiledModule. diff --git a/internal/wasm/memory_definition_test.go b/internal/wasm/memory_definition_test.go index 38daeb11..57ac10c7 100644 --- a/internal/wasm/memory_definition_test.go +++ b/internal/wasm/memory_definition_test.go @@ -3,8 +3,8 @@ package wasm import ( "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModule_BuildMemoryDefinitions(t *testing.T) { diff --git a/internal/wasm/memory_test.go b/internal/wasm/memory_test.go index 41b88fe5..c30b19c9 100644 --- a/internal/wasm/memory_test.go +++ b/internal/wasm/memory_test.go @@ -8,8 +8,8 @@ import ( "time" "unsafe" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestMemoryPageConsts(t *testing.T) { diff --git a/internal/wasm/module.go b/internal/wasm/module.go index 26d485ee..1f9dec24 100644 --- a/internal/wasm/module.go +++ b/internal/wasm/module.go @@ -11,11 +11,11 @@ import ( "strings" "sync" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/ieee754" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasmdebug" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/ieee754" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasmdebug" ) // Module is a WebAssembly binary representation. diff --git a/internal/wasm/module_instance.go b/internal/wasm/module_instance.go index 4bc08764..1d6410b3 100644 --- a/internal/wasm/module_instance.go +++ b/internal/wasm/module_instance.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/sys" ) // FailIfClosed returns a sys.ExitError if CloseWithExitCode was called. diff --git a/internal/wasm/module_instance_lookup.go b/internal/wasm/module_instance_lookup.go index 442d26a2..b21554ea 100644 --- a/internal/wasm/module_instance_lookup.go +++ b/internal/wasm/module_instance_lookup.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/internalapi" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/internalapi" ) // LookupFunction looks up the table by the given index, and returns the api.Function implementation if found, diff --git a/internal/wasm/module_instance_lookup_test.go b/internal/wasm/module_instance_lookup_test.go index 3e8c839e..246dd07a 100644 --- a/internal/wasm/module_instance_lookup_test.go +++ b/internal/wasm/module_instance_lookup_test.go @@ -5,8 +5,8 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModuleInstance_LookupFunction(t *testing.T) { diff --git a/internal/wasm/module_instance_test.go b/internal/wasm/module_instance_test.go index 89b5a231..a29e378b 100644 --- a/internal/wasm/module_instance_test.go +++ b/internal/wasm/module_instance_test.go @@ -8,12 +8,12 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/experimental/sys" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/sysfs" - testfs "github.com/tetratelabs/wazero/internal/testing/fs" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/experimental/sys" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/sysfs" + testfs "github.com/wasilibs/wazerox/internal/testing/fs" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestModuleInstance_String(t *testing.T) { diff --git a/internal/wasm/module_test.go b/internal/wasm/module_test.go index a3f5dab4..66bf180e 100644 --- a/internal/wasm/module_test.go +++ b/internal/wasm/module_test.go @@ -6,11 +6,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestFunctionType_String(t *testing.T) { diff --git a/internal/wasm/store.go b/internal/wasm/store.go index f15c19fc..53fe54dc 100644 --- a/internal/wasm/store.go +++ b/internal/wasm/store.go @@ -7,12 +7,12 @@ import ( "sync" "sync/atomic" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/close" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/close" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/sys" ) // nameToModuleShrinkThreshold is the size the nameToModule map can grow to diff --git a/internal/wasm/store_module_list.go b/internal/wasm/store_module_list.go index 17c63e38..a622ba3d 100644 --- a/internal/wasm/store_module_list.go +++ b/internal/wasm/store_module_list.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/tetratelabs/wazero/api" + "github.com/wasilibs/wazerox/api" ) // deleteModule makes the moduleName available for instantiation again. diff --git a/internal/wasm/store_module_list_test.go b/internal/wasm/store_module_list_test.go index de6d8c24..78a92ae3 100644 --- a/internal/wasm/store_module_list_test.go +++ b/internal/wasm/store_module_list_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) func TestStore_registerModule(t *testing.T) { diff --git a/internal/wasm/store_test.go b/internal/wasm/store_test.go index 00b418f0..32cd7582 100644 --- a/internal/wasm/store_test.go +++ b/internal/wasm/store_test.go @@ -8,14 +8,14 @@ import ( "strconv" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/internalapi" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/u64" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/internalapi" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/u64" ) func TestModuleInstance_Memory(t *testing.T) { diff --git a/internal/wasm/table.go b/internal/wasm/table.go index ac9fc498..c95d3305 100644 --- a/internal/wasm/table.go +++ b/internal/wasm/table.go @@ -4,8 +4,8 @@ import ( "fmt" "math" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" ) // Table describes the limits of elements and its type in a table. diff --git a/internal/wasm/table_test.go b/internal/wasm/table_test.go index 1c5b2559..ffd02577 100644 --- a/internal/wasm/table_test.go +++ b/internal/wasm/table_test.go @@ -4,9 +4,9 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" ) // Test_ElementInitNullReference_valid ensures it is actually safe to use ElementInitNullReference diff --git a/internal/wasmdebug/debug.go b/internal/wasmdebug/debug.go index 0aa61369..49f4578a 100644 --- a/internal/wasmdebug/debug.go +++ b/internal/wasmdebug/debug.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/wasmruntime" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/wasmruntime" + "github.com/wasilibs/wazerox/sys" ) // FuncName returns the naming convention of "moduleName.funcName". diff --git a/internal/wasmdebug/debug_test.go b/internal/wasmdebug/debug_test.go index 1747423f..b8f9f685 100644 --- a/internal/wasmdebug/debug_test.go +++ b/internal/wasmdebug/debug_test.go @@ -5,9 +5,9 @@ import ( "runtime" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasmruntime" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasmruntime" ) func TestFuncName(t *testing.T) { @@ -144,7 +144,7 @@ wasm stack trace: x.y()`) require.Contains(t, errStr, "Go runtime stack trace:") require.Contains(t, errStr, "goroutine ") - require.Contains(t, errStr, "wazero/internal/wasmdebug/debug_test.go") + require.Contains(t, errStr, "wazerox/internal/wasmdebug/debug_test.go") } // compile-time check to ensure testRuntimeErr implements runtime.Error. diff --git a/internal/wasmdebug/dwarf_test.go b/internal/wasmdebug/dwarf_test.go index fb0d72c4..1348d353 100644 --- a/internal/wasmdebug/dwarf_test.go +++ b/internal/wasmdebug/dwarf_test.go @@ -5,12 +5,12 @@ import ( "strings" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/testing/dwarftestdata" - "github.com/tetratelabs/wazero/internal/testing/hammer" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/internal/wasm/binary" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/testing/dwarftestdata" + "github.com/wasilibs/wazerox/internal/testing/hammer" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm/binary" ) func TestDWARFLines_Line_Zig(t *testing.T) { diff --git a/internal/wazeroir/compiler.go b/internal/wazeroir/compiler.go index 85b20139..403ee3d7 100644 --- a/internal/wazeroir/compiler.go +++ b/internal/wazeroir/compiler.go @@ -7,9 +7,9 @@ import ( "math" "strings" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/wasm" ) type controlFrameKind byte diff --git a/internal/wazeroir/compiler_test.go b/internal/wazeroir/compiler_test.go index 2520e566..bc64788f 100644 --- a/internal/wazeroir/compiler_test.go +++ b/internal/wazeroir/compiler_test.go @@ -5,11 +5,11 @@ import ( "math" "testing" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) var ( diff --git a/internal/wazeroir/operations_test.go b/internal/wazeroir/operations_test.go index 7ac15956..d7310060 100644 --- a/internal/wazeroir/operations_test.go +++ b/internal/wazeroir/operations_test.go @@ -3,7 +3,7 @@ package wazeroir import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" + "github.com/wasilibs/wazerox/internal/testing/require" ) // TestInstructionName ensures that all the operation Kind's stringer is well-defined. diff --git a/internal/wazeroir/signature.go b/internal/wazeroir/signature.go index 30a5868d..3b356557 100644 --- a/internal/wazeroir/signature.go +++ b/internal/wazeroir/signature.go @@ -3,7 +3,7 @@ package wazeroir import ( "fmt" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/wasm" ) // signature represents how a Wasm opcode diff --git a/internal/wazeroir/signature_test.go b/internal/wazeroir/signature_test.go index 51867836..61c2da41 100644 --- a/internal/wazeroir/signature_test.go +++ b/internal/wazeroir/signature_test.go @@ -3,8 +3,8 @@ package wazeroir import ( "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" ) func TestCompiler_wasmOpcodeSignature(t *testing.T) { diff --git a/runtime.go b/runtime.go index 220324ed..9a1722df 100644 --- a/runtime.go +++ b/runtime.go @@ -5,14 +5,14 @@ import ( "fmt" "sync/atomic" - "github.com/tetratelabs/wazero/api" - experimentalapi "github.com/tetratelabs/wazero/experimental" - internalclose "github.com/tetratelabs/wazero/internal/close" - internalsock "github.com/tetratelabs/wazero/internal/sock" - internalsys "github.com/tetratelabs/wazero/internal/sys" - "github.com/tetratelabs/wazero/internal/wasm" - binaryformat "github.com/tetratelabs/wazero/internal/wasm/binary" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + experimentalapi "github.com/wasilibs/wazerox/experimental" + internalclose "github.com/wasilibs/wazerox/internal/close" + internalsock "github.com/wasilibs/wazerox/internal/sock" + internalsys "github.com/wasilibs/wazerox/internal/sys" + "github.com/wasilibs/wazerox/internal/wasm" + binaryformat "github.com/wasilibs/wazerox/internal/wasm/binary" + "github.com/wasilibs/wazerox/sys" ) // Runtime allows embedding of WebAssembly modules. diff --git a/runtime_test.go b/runtime_test.go index b7fce389..4f35a64c 100644 --- a/runtime_test.go +++ b/runtime_test.go @@ -8,15 +8,15 @@ import ( "testing" "time" - "github.com/tetratelabs/wazero/api" - "github.com/tetratelabs/wazero/experimental" - "github.com/tetratelabs/wazero/internal/filecache" - "github.com/tetratelabs/wazero/internal/leb128" - "github.com/tetratelabs/wazero/internal/platform" - "github.com/tetratelabs/wazero/internal/testing/binaryencoding" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/internal/wasm" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/api" + "github.com/wasilibs/wazerox/experimental" + "github.com/wasilibs/wazerox/internal/filecache" + "github.com/wasilibs/wazerox/internal/leb128" + "github.com/wasilibs/wazerox/internal/platform" + "github.com/wasilibs/wazerox/internal/testing/binaryencoding" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/internal/wasm" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/sys/error_test.go b/sys/error_test.go index 473e4768..fbfb7457 100644 --- a/sys/error_test.go +++ b/sys/error_test.go @@ -5,8 +5,8 @@ import ( "errors" "testing" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) type notExitError struct { diff --git a/sys/stat_example_test.go b/sys/stat_example_test.go index 9b75eb58..bcfefa32 100644 --- a/sys/stat_example_test.go +++ b/sys/stat_example_test.go @@ -4,7 +4,7 @@ import ( "io/fs" "math" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/sys" ) var ( diff --git a/sys/stat_test.go b/sys/stat_test.go index 32d0ffea..d1f9e9ac 100644 --- a/sys/stat_test.go +++ b/sys/stat_test.go @@ -8,8 +8,8 @@ import ( "testing" "testing/fstest" - "github.com/tetratelabs/wazero/internal/testing/require" - "github.com/tetratelabs/wazero/sys" + "github.com/wasilibs/wazerox/internal/testing/require" + "github.com/wasilibs/wazerox/sys" ) func Test_NewStat_t(t *testing.T) {