diff --git a/README.md b/README.md index 98b5e551..2170ac86 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ A Bytecode Alliance hosted project
@@ -108,7 +108,7 @@ This repository contains (for all supported languages): ## Contributing -[](https://github.com/wrpc/wrpc/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) [](https://github.com/wrpc/wrpc/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) [](https://github.com/wrpc/wrpc/pulls?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) [](https://github.com/wrpc/wrpc/issues?q=is%3Aopen) +[](https://github.com/bytecodealliance/wrpc/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) [](https://github.com/bytecodealliance/wrpc/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) [](https://github.com/bytecodealliance/wrpc/pulls?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) [](https://github.com/bytecodealliance/wrpc/issues?q=is%3Aopen) 👋 **Welcome, new contributors!** diff --git a/crates/runtime-wasmtime/src/lib.rs b/crates/runtime-wasmtime/src/lib.rs index 84957ec8..39bdc3c8 100644 --- a/crates/runtime-wasmtime/src/lib.rs +++ b/crates/runtime-wasmtime/src/lib.rs @@ -1,4 +1,4 @@ -#![allow(clippy::type_complexity)] // TODO: https://github.com/wrpc/wrpc/issues/2 +#![allow(clippy::type_complexity)] // TODO: https://github.com/bytecodealliance/wrpc/issues/2 use core::future::Future; use core::iter::zip; diff --git a/crates/wit-bindgen-go/src/lib.rs b/crates/wit-bindgen-go/src/lib.rs index b19d3be4..40d7bb70 100644 --- a/crates/wit-bindgen-go/src/lib.rs +++ b/crates/wit-bindgen-go/src/lib.rs @@ -115,8 +115,10 @@ impl Deps { } fn wrpc(&mut self) -> &'static str { - self.map - .insert("wrpc".to_string(), "github.com/wrpc/wrpc/go".to_string()); + self.map.insert( + "wrpc".to_string(), + "github.com/bytecodealliance/wrpc/go".to_string(), + ); "wrpc" } diff --git a/crates/wit-bindgen-go/tests/codegen.rs b/crates/wit-bindgen-go/tests/codegen.rs index 9f67084c..47c27fec 100644 --- a/crates/wit-bindgen-go/tests/codegen.rs +++ b/crates/wit-bindgen-go/tests/codegen.rs @@ -49,9 +49,9 @@ use .", go 1.22.2 -require github.com/wrpc/wrpc/go v0.0.0-unpublished +require github.com/bytecodealliance/wrpc/go v0.0.0-unpublished -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => {}", +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => {}", root.join("go").display(), ), ) diff --git a/crates/wit-bindgen-rust/src/lib.rs b/crates/wit-bindgen-rust/src/lib.rs index ed6fafe7..453e5a13 100644 --- a/crates/wit-bindgen-rust/src/lib.rs +++ b/crates/wit-bindgen-rust/src/lib.rs @@ -460,7 +460,7 @@ impl WorldGenerator for RustWrpc { self.opts.additional_derive_attributes ); } - for (k, v) in self.opts.with.iter() { + for (k, v) in &self.opts.with { uwriteln!(self.src, "// * with {k:?} = {v:?}"); } self.types.analyze(resolve); @@ -478,7 +478,7 @@ impl WorldGenerator for RustWrpc { } } } - for (k, v) in self.opts.with.iter() { + for (k, v) in &self.opts.with { self.with.insert(k.clone(), v.clone().into()); } self.with.generate_by_default = self.opts.generate_all; diff --git a/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources/bindings.wrpc.go b/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources/bindings.wrpc.go index b41a1bc0..302a7959 100644 --- a/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources/bindings.wrpc.go +++ b/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources/bindings.wrpc.go @@ -7,7 +7,7 @@ import ( binary "encoding/binary" errors "errors" fmt "fmt" - wrpc "github.com/wrpc/wrpc/go" + wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" diff --git a/examples/go/complex-server/bindings/server.wrpc.go b/examples/go/complex-server/bindings/server.wrpc.go index f01d2e34..a53c63b7 100644 --- a/examples/go/complex-server/bindings/server.wrpc.go +++ b/examples/go/complex-server/bindings/server.wrpc.go @@ -3,8 +3,8 @@ package server import ( - exports__wrpc_examples__complex__resources "github.com/wrpc/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" - wrpc "github.com/wrpc/wrpc/go" + exports__wrpc_examples__complex__resources "github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" + wrpc "github.com/bytecodealliance/wrpc/go" ) func Serve(s wrpc.Server, h0 exports__wrpc_examples__complex__resources.Handler) (stop func() error, err error) { diff --git a/examples/go/complex-server/cmd/complex-server-nats/main.go b/examples/go/complex-server/cmd/complex-server-nats/main.go index a134f6f6..ab28d526 100644 --- a/examples/go/complex-server/cmd/complex-server-nats/main.go +++ b/examples/go/complex-server/cmd/complex-server-nats/main.go @@ -10,12 +10,12 @@ import ( "sync" "syscall" + server "github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings" + "github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" + wrpc "github.com/bytecodealliance/wrpc/go" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" "github.com/google/uuid" "github.com/nats-io/nats.go" - server "github.com/wrpc/wrpc/examples/go/complex-server/bindings" - "github.com/wrpc/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" - wrpc "github.com/wrpc/wrpc/go" - wrpcnats "github.com/wrpc/wrpc/go/nats" ) type Foo struct { diff --git a/examples/go/complex-server/complex_server.go b/examples/go/complex-server/complex_server.go index d89d166c..5e2fd081 100644 --- a/examples/go/complex-server/complex_server.go +++ b/examples/go/complex-server/complex_server.go @@ -1,3 +1,3 @@ -//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/wrpc/wrpc/examples/go/complex-server/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/bytecodealliance/wrpc/examples/go/complex-server/bindings wit package complex_server diff --git a/examples/go/complex-server/go.mod b/examples/go/complex-server/go.mod index 58d9d36e..895dbd33 100644 --- a/examples/go/complex-server/go.mod +++ b/examples/go/complex-server/go.mod @@ -1,11 +1,11 @@ -module github.com/wrpc/wrpc/examples/go/complex-server +module github.com/bytecodealliance/wrpc/examples/go/complex-server go 1.22.2 require ( + github.com/bytecodealliance/wrpc/go v0.0.0-unpublished github.com/google/uuid v1.6.0 github.com/nats-io/nats.go v1.37.0 - github.com/wrpc/wrpc/go v0.0.0-unpublished ) require ( @@ -16,4 +16,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => ../../../go +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => ../../../go diff --git a/examples/go/hello-client/bindings/wrpc_examples/hello/handler/bindings.wrpc.go b/examples/go/hello-client/bindings/wrpc_examples/hello/handler/bindings.wrpc.go index 0b51b7b3..a9f6306e 100644 --- a/examples/go/hello-client/bindings/wrpc_examples/hello/handler/bindings.wrpc.go +++ b/examples/go/hello-client/bindings/wrpc_examples/hello/handler/bindings.wrpc.go @@ -5,7 +5,7 @@ import ( context "context" errors "errors" fmt "fmt" - wrpc "github.com/wrpc/wrpc/go" + wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" utf8 "unicode/utf8" diff --git a/examples/go/hello-client/cmd/hello-client-nats/main.go b/examples/go/hello-client/cmd/hello-client-nats/main.go index ed143f4c..94d2d66d 100644 --- a/examples/go/hello-client/cmd/hello-client-nats/main.go +++ b/examples/go/hello-client/cmd/hello-client-nats/main.go @@ -7,9 +7,9 @@ import ( "log/slog" "os" + "github.com/bytecodealliance/wrpc/examples/go/hello-client/bindings/wrpc_examples/hello/handler" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" "github.com/nats-io/nats.go" - "github.com/wrpc/wrpc/examples/go/hello-client/bindings/wrpc_examples/hello/handler" - wrpcnats "github.com/wrpc/wrpc/go/nats" ) func run() (err error) { diff --git a/examples/go/hello-client/go.mod b/examples/go/hello-client/go.mod index bd11e14f..b339d1d6 100644 --- a/examples/go/hello-client/go.mod +++ b/examples/go/hello-client/go.mod @@ -1,10 +1,10 @@ -module github.com/wrpc/wrpc/examples/go/hello-client +module github.com/bytecodealliance/wrpc/examples/go/hello-client go 1.22.2 require ( + github.com/bytecodealliance/wrpc/go v0.0.0-unpublished github.com/nats-io/nats.go v1.37.0 - github.com/wrpc/wrpc/go v0.0.0-unpublished ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => ../../../go +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => ../../../go diff --git a/examples/go/hello-client/hello_client.go b/examples/go/hello-client/hello_client.go index f666ed1e..1c6c6052 100644 --- a/examples/go/hello-client/hello_client.go +++ b/examples/go/hello-client/hello_client.go @@ -1,3 +1,3 @@ -//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/wrpc/wrpc/examples/go/hello-client/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/bytecodealliance/wrpc/examples/go/hello-client/bindings wit package hello_client diff --git a/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler/bindings.wrpc.go b/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler/bindings.wrpc.go index bfab6caa..7342fc53 100644 --- a/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler/bindings.wrpc.go +++ b/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler/bindings.wrpc.go @@ -6,7 +6,7 @@ import ( context "context" binary "encoding/binary" fmt "fmt" - wrpc "github.com/wrpc/wrpc/go" + wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" diff --git a/examples/go/hello-server/bindings/server.wrpc.go b/examples/go/hello-server/bindings/server.wrpc.go index b88e8123..3cdc15a9 100644 --- a/examples/go/hello-server/bindings/server.wrpc.go +++ b/examples/go/hello-server/bindings/server.wrpc.go @@ -3,8 +3,8 @@ package server import ( - exports__wrpc_examples__hello__handler "github.com/wrpc/wrpc/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler" - wrpc "github.com/wrpc/wrpc/go" + exports__wrpc_examples__hello__handler "github.com/bytecodealliance/wrpc/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler" + wrpc "github.com/bytecodealliance/wrpc/go" ) func Serve(s wrpc.Server, h0 exports__wrpc_examples__hello__handler.Handler) (stop func() error, err error) { diff --git a/examples/go/hello-server/cmd/hello-server-nats/main.go b/examples/go/hello-server/cmd/hello-server-nats/main.go index 33419f7c..da859d9d 100644 --- a/examples/go/hello-server/cmd/hello-server-nats/main.go +++ b/examples/go/hello-server/cmd/hello-server-nats/main.go @@ -9,9 +9,9 @@ import ( "os/signal" "syscall" + server "github.com/bytecodealliance/wrpc/examples/go/hello-server/bindings" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" "github.com/nats-io/nats.go" - server "github.com/wrpc/wrpc/examples/go/hello-server/bindings" - wrpcnats "github.com/wrpc/wrpc/go/nats" ) type Handler struct{} diff --git a/examples/go/hello-server/go.mod b/examples/go/hello-server/go.mod index bd0f9e9f..45f6de18 100644 --- a/examples/go/hello-server/go.mod +++ b/examples/go/hello-server/go.mod @@ -1,10 +1,10 @@ -module github.com/wrpc/wrpc/examples/go/hello-server +module github.com/bytecodealliance/wrpc/examples/go/hello-server go 1.22.2 require ( + github.com/bytecodealliance/wrpc/go v0.0.0-unpublished github.com/nats-io/nats.go v1.37.0 - github.com/wrpc/wrpc/go v0.0.0-unpublished ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => ../../../go +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => ../../../go diff --git a/examples/go/hello-server/hello_server.go b/examples/go/hello-server/hello_server.go index 9a0879b0..4c076334 100644 --- a/examples/go/hello-server/hello_server.go +++ b/examples/go/hello-server/hello_server.go @@ -1,3 +1,3 @@ -//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/wrpc/wrpc/examples/go/hello-server/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/bytecodealliance/wrpc/examples/go/hello-server/bindings wit package hello_server diff --git a/go.work b/go.work index a3a3967f..98e06f45 100644 --- a/go.work +++ b/go.work @@ -8,4 +8,4 @@ use ( ./tests/go ) -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => ./go +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => ./go diff --git a/go/go.mod b/go/go.mod index d6a61c08..f3666813 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,4 +1,4 @@ -module github.com/wrpc/wrpc/go +module github.com/bytecodealliance/wrpc/go go 1.22.2 diff --git a/go/nats/client.go b/go/nats/client.go index 503369c6..b34a016a 100644 --- a/go/nats/client.go +++ b/go/nats/client.go @@ -8,8 +8,8 @@ import ( "log/slog" "sync" + wrpc "github.com/bytecodealliance/wrpc/go" "github.com/nats-io/nats.go" - wrpc "github.com/wrpc/wrpc/go" ) type headerKey struct{} diff --git a/tests/go/async.go b/tests/go/async.go index fdff26ca..1004b85f 100644 --- a/tests/go/async.go +++ b/tests/go/async.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --world async-server --out-dir bindings/async_server --package github.com/wrpc/wrpc/tests/go/bindings/async_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --world async-server --out-dir bindings/async_server --package github.com/bytecodealliance/wrpc/tests/go/bindings/async_server ../wit package integration @@ -7,7 +7,7 @@ import ( "context" "log/slog" - wrpc "github.com/wrpc/wrpc/go" + wrpc "github.com/bytecodealliance/wrpc/go" ) type AsyncHandler struct{} diff --git a/tests/go/async_test.go b/tests/go/async_test.go index 15cb958f..b797c4d0 100644 --- a/tests/go/async_test.go +++ b/tests/go/async_test.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --world async-client --out-dir bindings/async_client --package github.com/wrpc/wrpc/tests/go/bindings/async_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --world async-client --out-dir bindings/async_client --package github.com/bytecodealliance/wrpc/tests/go/bindings/async_client ../wit package integration_test @@ -10,12 +10,12 @@ import ( "testing" "time" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + integration "github.com/bytecodealliance/wrpc/tests/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/async_client/wrpc_test/integration/async" + "github.com/bytecodealliance/wrpc/tests/go/bindings/async_server" + "github.com/bytecodealliance/wrpc/tests/go/internal" "github.com/nats-io/nats.go" - wrpcnats "github.com/wrpc/wrpc/go/nats" - integration "github.com/wrpc/wrpc/tests/go" - "github.com/wrpc/wrpc/tests/go/bindings/async_client/wrpc_test/integration/async" - "github.com/wrpc/wrpc/tests/go/bindings/async_server" - "github.com/wrpc/wrpc/tests/go/internal" ) func TestAsync(t *testing.T) { diff --git a/tests/go/cmd/sync-server-nats/main.go b/tests/go/cmd/sync-server-nats/main.go index fe3313a2..df5f5a65 100644 --- a/tests/go/cmd/sync-server-nats/main.go +++ b/tests/go/cmd/sync-server-nats/main.go @@ -8,10 +8,10 @@ import ( "os/signal" "syscall" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + integration "github.com/bytecodealliance/wrpc/tests/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server" "github.com/nats-io/nats.go" - wrpcnats "github.com/wrpc/wrpc/go/nats" - integration "github.com/wrpc/wrpc/tests/go" - "github.com/wrpc/wrpc/tests/go/bindings/sync_server" ) func run(url string) error { diff --git a/tests/go/go.mod b/tests/go/go.mod index fc20b132..59ae27a0 100644 --- a/tests/go/go.mod +++ b/tests/go/go.mod @@ -1,12 +1,12 @@ -module github.com/wrpc/wrpc/tests/go +module github.com/bytecodealliance/wrpc/tests/go go 1.22.2 require ( + github.com/bytecodealliance/wrpc/go v0.0.0-unpublished github.com/google/uuid v1.6.0 github.com/nats-io/nats-server/v2 v2.10.14 - github.com/nats-io/nats.go v1.36.0 - github.com/wrpc/wrpc/go v0.0.0-unpublished + github.com/nats-io/nats.go v1.37.0 ) require ( @@ -24,4 +24,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/wrpc/wrpc/go v0.0.0-unpublished => ../../go +replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => ../../go diff --git a/tests/go/go.sum b/tests/go/go.sum index 3a09a173..b149159b 100644 --- a/tests/go/go.sum +++ b/tests/go/go.sum @@ -10,8 +10,8 @@ github.com/nats-io/jwt/v2 v2.5.5 h1:ROfXb50elFq5c9+1ztaUbdlrArNFl2+fQWP6B8HGEq4= github.com/nats-io/jwt/v2 v2.5.5/go.mod h1:ZdWS1nZa6WMZfFwwgpEaqBV8EPGVgOTDHN/wTbz0Y5A= github.com/nats-io/nats-server/v2 v2.10.14 h1:98gPJFOAO2vLdM0gogh8GAiHghwErrSLhugIqzRC+tk= github.com/nats-io/nats-server/v2 v2.10.14/go.mod h1:a0TwOVBJZz6Hwv7JH2E4ONdpyFk9do0C18TEwxnHdRk= -github.com/nats-io/nats.go v1.36.0 h1:suEUPuWzTSse/XhESwqLxXGuj8vGRuPRoG7MoRN/qyU= -github.com/nats-io/nats.go v1.36.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8= +github.com/nats-io/nats.go v1.37.0 h1:07rauXbVnnJvv1gfIyghFEo6lUcYRY0WXc3x7x0vUxE= +github.com/nats-io/nats.go v1.37.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8= github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI= github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= diff --git a/tests/go/resources.go b/tests/go/resources.go index 9c7f8c4c..be04a981 100644 --- a/tests/go/resources.go +++ b/tests/go/resources.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --world resources-server --out-dir bindings/resources_server --package github.com/wrpc/wrpc/tests/go/bindings/resources_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --world resources-server --out-dir bindings/resources_server --package github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server ../wit package integration @@ -7,9 +7,9 @@ import ( "fmt" "sync" + wrpc "github.com/bytecodealliance/wrpc/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server/exports/wrpc_test/integration/resources" "github.com/google/uuid" - wrpc "github.com/wrpc/wrpc/go" - "github.com/wrpc/wrpc/tests/go/bindings/resources_server/exports/wrpc_test/integration/resources" ) type Foo struct { diff --git a/tests/go/resources_test.go b/tests/go/resources_test.go index 7e3a03e8..61c90092 100644 --- a/tests/go/resources_test.go +++ b/tests/go/resources_test.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --world resources-client --out-dir bindings/resources_client --package github.com/wrpc/wrpc/tests/go/bindings/resources_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --world resources-client --out-dir bindings/resources_client --package github.com/bytecodealliance/wrpc/tests/go/bindings/resources_client ../wit package integration_test @@ -8,14 +8,14 @@ import ( "testing" "time" + wrpc "github.com/bytecodealliance/wrpc/go" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + integration "github.com/bytecodealliance/wrpc/tests/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/resources_client/strange" + "github.com/bytecodealliance/wrpc/tests/go/bindings/resources_client/wrpc_test/integration/resources" + "github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server" + "github.com/bytecodealliance/wrpc/tests/go/internal" "github.com/nats-io/nats.go" - wrpc "github.com/wrpc/wrpc/go" - wrpcnats "github.com/wrpc/wrpc/go/nats" - integration "github.com/wrpc/wrpc/tests/go" - "github.com/wrpc/wrpc/tests/go/bindings/resources_client/strange" - "github.com/wrpc/wrpc/tests/go/bindings/resources_client/wrpc_test/integration/resources" - "github.com/wrpc/wrpc/tests/go/bindings/resources_server" - "github.com/wrpc/wrpc/tests/go/internal" ) func TestResources(t *testing.T) { diff --git a/tests/go/sync.go b/tests/go/sync.go index 5a0053ee..98f62402 100644 --- a/tests/go/sync.go +++ b/tests/go/sync.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-server --out-dir bindings/sync_server --package github.com/wrpc/wrpc/tests/go/bindings/sync_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-server --out-dir bindings/sync_server --package github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server ../wit package integration @@ -7,8 +7,8 @@ import ( "fmt" "log/slog" - wrpc "github.com/wrpc/wrpc/go" - "github.com/wrpc/wrpc/tests/go/bindings/sync_server/exports/wrpc_test/integration/sync" + wrpc "github.com/bytecodealliance/wrpc/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server/exports/wrpc_test/integration/sync" ) type SyncHandler struct{} diff --git a/tests/go/sync_test.go b/tests/go/sync_test.go index 92159a3e..bfa8a4ce 100644 --- a/tests/go/sync_test.go +++ b/tests/go/sync_test.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-client --out-dir bindings/sync_client --package github.com/wrpc/wrpc/tests/go/bindings/sync_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-client --out-dir bindings/sync_client --package github.com/bytecodealliance/wrpc/tests/go/bindings/sync_client ../wit package integration_test @@ -9,14 +9,14 @@ import ( "testing" "time" + wrpc "github.com/bytecodealliance/wrpc/go" + wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + integration "github.com/bytecodealliance/wrpc/tests/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_client/foo" + "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_client/wrpc_test/integration/sync" + "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server" + "github.com/bytecodealliance/wrpc/tests/go/internal" "github.com/nats-io/nats.go" - wrpc "github.com/wrpc/wrpc/go" - wrpcnats "github.com/wrpc/wrpc/go/nats" - integration "github.com/wrpc/wrpc/tests/go" - "github.com/wrpc/wrpc/tests/go/bindings/sync_client/foo" - "github.com/wrpc/wrpc/tests/go/bindings/sync_client/wrpc_test/integration/sync" - "github.com/wrpc/wrpc/tests/go/bindings/sync_server" - "github.com/wrpc/wrpc/tests/go/internal" ) func TestSync(t *testing.T) { diff --git a/tests/go/types_test.go b/tests/go/types_test.go index 9517d713..d81bf62a 100644 --- a/tests/go/types_test.go +++ b/tests/go/types_test.go @@ -1,4 +1,4 @@ -//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world types --out-dir bindings/types --package github.com/wrpc/wrpc/tests/go/bindings/types ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world types --out-dir bindings/types --package github.com/bytecodealliance/wrpc/tests/go/bindings/types ../wit package integration_test @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" - wrpc "github.com/wrpc/wrpc/go" - "github.com/wrpc/wrpc/tests/go/bindings/types/wrpc_test/integration/get_types" + wrpc "github.com/bytecodealliance/wrpc/go" + "github.com/bytecodealliance/wrpc/tests/go/bindings/types/wrpc_test/integration/get_types" ) type indexReader struct {