From 4abab2d3f7c3df3953e6e7c31ecdf7b1b12c7db9 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Fri, 23 Aug 2024 19:18:01 +0200 Subject: [PATCH] feat(go)!: use `wrpc.io` module URL Signed-off-by: Roman Volosatovs --- crates/wit-bindgen-go/src/lib.rs | 6 ++---- crates/wit-bindgen-go/tests/codegen.rs | 4 ++-- .../complex/resources/bindings.wrpc.go | 2 +- .../go/complex-server/bindings/server.wrpc.go | 4 ++-- .../cmd/complex-server-nats/main.go | 8 ++++---- examples/go/complex-server/complex_server.go | 2 +- examples/go/complex-server/go.mod | 6 +++--- .../wrpc_examples/hello/handler/bindings.wrpc.go | 2 +- .../hello-client/cmd/hello-client-nats/main.go | 4 ++-- examples/go/hello-client/go.mod | 6 +++--- examples/go/hello-client/hello_client.go | 2 +- .../wrpc_examples/hello/handler/bindings.wrpc.go | 2 +- examples/go/hello-server/bindings/server.wrpc.go | 4 ++-- .../hello-server/cmd/hello-server-nats/main.go | 4 ++-- examples/go/hello-server/go.mod | 6 +++--- examples/go/hello-server/hello_server.go | 2 +- .../streams/handler/bindings.wrpc.go | 2 +- .../cmd/streams-client-nats/main.go | 4 ++-- examples/go/streams-client/go.mod | 6 +++--- examples/go/streams-client/streams_client.go | 2 +- .../streams/handler/bindings.wrpc.go | 2 +- .../go/streams-server/bindings/server.wrpc.go | 4 ++-- .../cmd/streams-server-nats/main.go | 8 ++++---- examples/go/streams-server/go.mod | 6 +++--- examples/go/streams-server/streams_server.go | 2 +- go.work | 2 +- go/go.mod | 2 +- go/nats/client.go | 2 +- tests/go/async.go | 4 ++-- tests/go/async_test.go | 12 ++++++------ tests/go/cmd/sync-server-nats/main.go | 6 +++--- tests/go/go.mod | 6 +++--- tests/go/resources.go | 6 +++--- tests/go/resources_test.go | 16 ++++++++-------- tests/go/sync.go | 6 +++--- tests/go/sync_test.go | 16 ++++++++-------- tests/go/types_test.go | 6 +++--- 37 files changed, 91 insertions(+), 93 deletions(-) diff --git a/crates/wit-bindgen-go/src/lib.rs b/crates/wit-bindgen-go/src/lib.rs index 40d7bb70..98651c78 100644 --- a/crates/wit-bindgen-go/src/lib.rs +++ b/crates/wit-bindgen-go/src/lib.rs @@ -115,10 +115,8 @@ impl Deps { } fn wrpc(&mut self) -> &'static str { - self.map.insert( - "wrpc".to_string(), - "github.com/bytecodealliance/wrpc/go".to_string(), - ); + self.map + .insert("wrpc".to_string(), "wrpc.io/go".to_string()); "wrpc" } diff --git a/crates/wit-bindgen-go/tests/codegen.rs b/crates/wit-bindgen-go/tests/codegen.rs index 47c27fec..c291883a 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/bytecodealliance/wrpc/go v0.0.0-unpublished +require wrpc.io/go v0.0.0-unpublished -replace github.com/bytecodealliance/wrpc/go v0.0.0-unpublished => {}", +replace wrpc.io/go v0.0.0-unpublished => {}", root.join("go").display(), ), ) 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 a6a40dff..baa8c92c 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,11 +7,11 @@ import ( binary "encoding/binary" errors "errors" fmt "fmt" - wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" utf8 "unicode/utf8" + wrpc "wrpc.io/go" ) type Foo interface{} diff --git a/examples/go/complex-server/bindings/server.wrpc.go b/examples/go/complex-server/bindings/server.wrpc.go index d91fe622..1768f50b 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/bytecodealliance/wrpc/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" - wrpc "github.com/bytecodealliance/wrpc/go" + exports__wrpc_examples__complex__resources "wrpc.io/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" + wrpc "wrpc.io/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 c6923080..e68ec08f 100644 --- a/examples/go/complex-server/cmd/complex-server-nats/main.go +++ b/examples/go/complex-server/cmd/complex-server-nats/main.go @@ -10,10 +10,10 @@ 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" + server "wrpc.io/examples/go/complex-server/bindings" + "wrpc.io/examples/go/complex-server/bindings/exports/wrpc_examples/complex/resources" + wrpc "wrpc.io/go" + wrpcnats "wrpc.io/go/nats" "github.com/google/uuid" "github.com/nats-io/nats.go" ) diff --git a/examples/go/complex-server/complex_server.go b/examples/go/complex-server/complex_server.go index 5e2fd081..4531c3b0 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/bytecodealliance/wrpc/examples/go/complex-server/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package wrpc.io/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 20116006..92bf6ca7 100644 --- a/examples/go/complex-server/go.mod +++ b/examples/go/complex-server/go.mod @@ -1,11 +1,11 @@ -module github.com/bytecodealliance/wrpc/examples/go/complex-server +module wrpc.io/examples/go/complex-server go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/google/uuid v1.6.0 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -16,4 +16,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../../go +replace wrpc.io/go v0.0.2 => ../../../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 f11a87ec..fb4b03e1 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,10 +5,10 @@ import ( context "context" errors "errors" fmt "fmt" - wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" utf8 "unicode/utf8" + wrpc "wrpc.io/go" ) func Hello(ctx__ context.Context, wrpc__ wrpc.Invoker) (r0__ string, err__ error) { 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 8201280e..448e5a77 100644 --- a/examples/go/hello-client/cmd/hello-client-nats/main.go +++ b/examples/go/hello-client/cmd/hello-client-nats/main.go @@ -7,8 +7,8 @@ import ( "log/slog" "os" - "github.com/bytecodealliance/wrpc/examples/go/hello-client/bindings/wrpc_examples/hello/handler" - wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + "wrpc.io/examples/go/hello-client/bindings/wrpc_examples/hello/handler" + wrpcnats "wrpc.io/go/nats" "github.com/nats-io/nats.go" ) diff --git a/examples/go/hello-client/go.mod b/examples/go/hello-client/go.mod index 356bde76..470a24db 100644 --- a/examples/go/hello-client/go.mod +++ b/examples/go/hello-client/go.mod @@ -1,10 +1,10 @@ -module github.com/bytecodealliance/wrpc/examples/go/hello-client +module wrpc.io/examples/go/hello-client go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../../go +replace wrpc.io/go v0.0.2 => ../../../go diff --git a/examples/go/hello-client/hello_client.go b/examples/go/hello-client/hello_client.go index 1c6c6052..c2ffd856 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/bytecodealliance/wrpc/examples/go/hello-client/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package wrpc.io/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 33bfb892..29541911 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,10 +6,10 @@ import ( context "context" binary "encoding/binary" fmt "fmt" - wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" + wrpc "wrpc.io/go" ) type Handler interface { diff --git a/examples/go/hello-server/bindings/server.wrpc.go b/examples/go/hello-server/bindings/server.wrpc.go index 85f7995c..058296a4 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/bytecodealliance/wrpc/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler" - wrpc "github.com/bytecodealliance/wrpc/go" + exports__wrpc_examples__hello__handler "wrpc.io/examples/go/hello-server/bindings/exports/wrpc_examples/hello/handler" + wrpc "wrpc.io/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 a5bd91b1..ba296244 100644 --- a/examples/go/hello-server/cmd/hello-server-nats/main.go +++ b/examples/go/hello-server/cmd/hello-server-nats/main.go @@ -9,8 +9,8 @@ import ( "os/signal" "syscall" - server "github.com/bytecodealliance/wrpc/examples/go/hello-server/bindings" - wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + server "wrpc.io/examples/go/hello-server/bindings" + wrpcnats "wrpc.io/go/nats" "github.com/nats-io/nats.go" ) diff --git a/examples/go/hello-server/go.mod b/examples/go/hello-server/go.mod index ca875f81..f3b06df0 100644 --- a/examples/go/hello-server/go.mod +++ b/examples/go/hello-server/go.mod @@ -1,10 +1,10 @@ -module github.com/bytecodealliance/wrpc/examples/go/hello-server +module wrpc.io/examples/go/hello-server go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../../go +replace wrpc.io/go v0.0.2 => ../../../go diff --git a/examples/go/hello-server/hello_server.go b/examples/go/hello-server/hello_server.go index 4c076334..eff62eba 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/bytecodealliance/wrpc/examples/go/hello-server/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package wrpc.io/examples/go/hello-server/bindings wit package hello_server diff --git a/examples/go/streams-client/bindings/wrpc_examples/streams/handler/bindings.wrpc.go b/examples/go/streams-client/bindings/wrpc_examples/streams/handler/bindings.wrpc.go index 4d8dbc67..10cb4e4f 100644 --- a/examples/go/streams-client/bindings/wrpc_examples/streams/handler/bindings.wrpc.go +++ b/examples/go/streams-client/bindings/wrpc_examples/streams/handler/bindings.wrpc.go @@ -7,12 +7,12 @@ import ( binary "encoding/binary" errors "errors" fmt "fmt" - wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" sync "sync" atomic "sync/atomic" + wrpc "wrpc.io/go" ) type Req struct { diff --git a/examples/go/streams-client/cmd/streams-client-nats/main.go b/examples/go/streams-client/cmd/streams-client-nats/main.go index 64539e32..e0ad925a 100644 --- a/examples/go/streams-client/cmd/streams-client-nats/main.go +++ b/examples/go/streams-client/cmd/streams-client-nats/main.go @@ -10,8 +10,8 @@ import ( "sync" "time" - "github.com/bytecodealliance/wrpc/examples/go/streams-client/bindings/wrpc_examples/streams/handler" - wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + "wrpc.io/examples/go/streams-client/bindings/wrpc_examples/streams/handler" + wrpcnats "wrpc.io/go/nats" "github.com/nats-io/nats.go" ) diff --git a/examples/go/streams-client/go.mod b/examples/go/streams-client/go.mod index 9ac8b21b..8e82c9fd 100644 --- a/examples/go/streams-client/go.mod +++ b/examples/go/streams-client/go.mod @@ -1,10 +1,10 @@ -module github.com/bytecodealliance/wrpc/examples/go/streams-client +module wrpc.io/examples/go/streams-client go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../../go +replace wrpc.io/go v0.0.2 => ../../../go diff --git a/examples/go/streams-client/streams_client.go b/examples/go/streams-client/streams_client.go index 17bcf62f..98f3b9c9 100644 --- a/examples/go/streams-client/streams_client.go +++ b/examples/go/streams-client/streams_client.go @@ -1,3 +1,3 @@ -//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/bytecodealliance/wrpc/examples/go/streams-client/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package wrpc.io/examples/go/streams-client/bindings wit package streams_client diff --git a/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler/bindings.wrpc.go b/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler/bindings.wrpc.go index 469e1596..14ba4d7e 100644 --- a/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler/bindings.wrpc.go +++ b/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler/bindings.wrpc.go @@ -7,12 +7,12 @@ import ( binary "encoding/binary" errors "errors" fmt "fmt" - wrpc "github.com/bytecodealliance/wrpc/go" io "io" slog "log/slog" math "math" sync "sync" atomic "sync/atomic" + wrpc "wrpc.io/go" ) type Req struct { diff --git a/examples/go/streams-server/bindings/server.wrpc.go b/examples/go/streams-server/bindings/server.wrpc.go index e7040122..288dd462 100644 --- a/examples/go/streams-server/bindings/server.wrpc.go +++ b/examples/go/streams-server/bindings/server.wrpc.go @@ -3,8 +3,8 @@ package server import ( - exports__wrpc_examples__streams__handler "github.com/bytecodealliance/wrpc/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler" - wrpc "github.com/bytecodealliance/wrpc/go" + exports__wrpc_examples__streams__handler "wrpc.io/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler" + wrpc "wrpc.io/go" ) func Serve(s wrpc.Server, h0 exports__wrpc_examples__streams__handler.Handler) (stop func() error, err error) { diff --git a/examples/go/streams-server/cmd/streams-server-nats/main.go b/examples/go/streams-server/cmd/streams-server-nats/main.go index 537e3564..e0ae1cc7 100644 --- a/examples/go/streams-server/cmd/streams-server-nats/main.go +++ b/examples/go/streams-server/cmd/streams-server-nats/main.go @@ -9,10 +9,10 @@ import ( "os/signal" "syscall" - server "github.com/bytecodealliance/wrpc/examples/go/streams-server/bindings" - "github.com/bytecodealliance/wrpc/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler" - wrpc "github.com/bytecodealliance/wrpc/go" - wrpcnats "github.com/bytecodealliance/wrpc/go/nats" + server "wrpc.io/examples/go/streams-server/bindings" + "wrpc.io/examples/go/streams-server/bindings/exports/wrpc_examples/streams/handler" + wrpc "wrpc.io/go" + wrpcnats "wrpc.io/go/nats" "github.com/nats-io/nats.go" ) diff --git a/examples/go/streams-server/go.mod b/examples/go/streams-server/go.mod index a6ec9620..dc884bac 100644 --- a/examples/go/streams-server/go.mod +++ b/examples/go/streams-server/go.mod @@ -1,10 +1,10 @@ -module github.com/bytecodealliance/wrpc/examples/go/streams-server +module wrpc.io/examples/go/streams-server go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -15,4 +15,4 @@ require ( golang.org/x/sys v0.20.0 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../../go +replace wrpc.io/go v0.0.2 => ../../../go diff --git a/examples/go/streams-server/streams_server.go b/examples/go/streams-server/streams_server.go index ea43ef22..032df2f3 100644 --- a/examples/go/streams-server/streams_server.go +++ b/examples/go/streams-server/streams_server.go @@ -1,3 +1,3 @@ -//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package github.com/bytecodealliance/wrpc/examples/go/streams-server/bindings wit +//go:generate cargo run --bin wit-bindgen-wrpc go --out-dir bindings --package wrpc.io/examples/go/streams-server/bindings wit package streams_server diff --git a/go.work b/go.work index 53b5291f..bb834fa0 100644 --- a/go.work +++ b/go.work @@ -10,4 +10,4 @@ use ( ./tests/go ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ./go +replace wrpc.io/go v0.0.2 => ./go diff --git a/go/go.mod b/go/go.mod index f3666813..d120bb4c 100644 --- a/go/go.mod +++ b/go/go.mod @@ -1,4 +1,4 @@ -module github.com/bytecodealliance/wrpc/go +module wrpc.io/go go 1.22.2 diff --git a/go/nats/client.go b/go/nats/client.go index 74280694..88a332d4 100644 --- a/go/nats/client.go +++ b/go/nats/client.go @@ -8,7 +8,7 @@ import ( "sync" "sync/atomic" - wrpc "github.com/bytecodealliance/wrpc/go" + wrpc "wrpc.io/go" "github.com/nats-io/nats.go" ) diff --git a/tests/go/async.go b/tests/go/async.go index 1004b85f..8f98debb 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/bytecodealliance/wrpc/tests/go/bindings/async_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --world async-server --out-dir bindings/async_server --package wrpc.io/tests/go/bindings/async_server ../wit package integration @@ -7,7 +7,7 @@ import ( "context" "log/slog" - wrpc "github.com/bytecodealliance/wrpc/go" + wrpc "wrpc.io/go" ) type AsyncHandler struct{} diff --git a/tests/go/async_test.go b/tests/go/async_test.go index 442f3f9d..37e1f342 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/bytecodealliance/wrpc/tests/go/bindings/async_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --world async-client --out-dir bindings/async_client --package wrpc.io/tests/go/bindings/async_client ../wit package integration_test @@ -10,11 +10,11 @@ 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" + wrpcnats "wrpc.io/go/nats" + integration "wrpc.io/tests/go" + "wrpc.io/tests/go/bindings/async_client/wrpc_test/integration/async" + "wrpc.io/tests/go/bindings/async_server" + "wrpc.io/tests/go/internal" "github.com/nats-io/nats.go" ) diff --git a/tests/go/cmd/sync-server-nats/main.go b/tests/go/cmd/sync-server-nats/main.go index aad10a80..b37291fc 100644 --- a/tests/go/cmd/sync-server-nats/main.go +++ b/tests/go/cmd/sync-server-nats/main.go @@ -8,9 +8,9 @@ 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" + wrpcnats "wrpc.io/go/nats" + integration "wrpc.io/tests/go" + "wrpc.io/tests/go/bindings/sync_server" "github.com/nats-io/nats.go" ) diff --git a/tests/go/go.mod b/tests/go/go.mod index 31c6b906..ceaf413b 100644 --- a/tests/go/go.mod +++ b/tests/go/go.mod @@ -1,12 +1,12 @@ -module github.com/bytecodealliance/wrpc/tests/go +module wrpc.io/tests/go go 1.22.2 require ( - github.com/bytecodealliance/wrpc/go v0.0.1 github.com/google/uuid v1.6.0 github.com/nats-io/nats-server/v2 v2.10.14 github.com/nats-io/nats.go v1.37.0 + wrpc.io/go v0.0.2 ) require ( @@ -24,4 +24,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/bytecodealliance/wrpc/go v0.0.1 => ../../go +replace wrpc.io/go v0.0.2 => ../../go diff --git a/tests/go/resources.go b/tests/go/resources.go index bb432990..43d0bf68 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/bytecodealliance/wrpc/tests/go/bindings/resources_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --world resources-server --out-dir bindings/resources_server --package wrpc.io/tests/go/bindings/resources_server ../wit package integration @@ -7,8 +7,8 @@ import ( "fmt" "sync" - wrpc "github.com/bytecodealliance/wrpc/go" - "github.com/bytecodealliance/wrpc/tests/go/bindings/resources_server/exports/wrpc_test/integration/resources" + wrpc "wrpc.io/go" + "wrpc.io/tests/go/bindings/resources_server/exports/wrpc_test/integration/resources" "github.com/google/uuid" ) diff --git a/tests/go/resources_test.go b/tests/go/resources_test.go index 46a8f321..ff4a8753 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/bytecodealliance/wrpc/tests/go/bindings/resources_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --world resources-client --out-dir bindings/resources_client --package wrpc.io/tests/go/bindings/resources_client ../wit package integration_test @@ -8,13 +8,13 @@ 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" + wrpc "wrpc.io/go" + wrpcnats "wrpc.io/go/nats" + integration "wrpc.io/tests/go" + "wrpc.io/tests/go/bindings/resources_client/strange" + "wrpc.io/tests/go/bindings/resources_client/wrpc_test/integration/resources" + "wrpc.io/tests/go/bindings/resources_server" + "wrpc.io/tests/go/internal" "github.com/nats-io/nats.go" ) diff --git a/tests/go/sync.go b/tests/go/sync.go index 6fc84c3f..c9babf8a 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/bytecodealliance/wrpc/tests/go/bindings/sync_server ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-server --out-dir bindings/sync_server --package wrpc.io/tests/go/bindings/sync_server ../wit package integration @@ -7,8 +7,8 @@ import ( "fmt" "log/slog" - wrpc "github.com/bytecodealliance/wrpc/go" - "github.com/bytecodealliance/wrpc/tests/go/bindings/sync_server/exports/wrpc_test/integration/sync" + wrpc "wrpc.io/go" + "wrpc.io/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 fe478885..0a62b4a5 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/bytecodealliance/wrpc/tests/go/bindings/sync_client ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world sync-client --out-dir bindings/sync_client --package wrpc.io/tests/go/bindings/sync_client ../wit package integration_test @@ -9,13 +9,13 @@ 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" + wrpc "wrpc.io/go" + wrpcnats "wrpc.io/go/nats" + integration "wrpc.io/tests/go" + "wrpc.io/tests/go/bindings/sync_client/foo" + "wrpc.io/tests/go/bindings/sync_client/wrpc_test/integration/sync" + "wrpc.io/tests/go/bindings/sync_server" + "wrpc.io/tests/go/internal" "github.com/nats-io/nats.go" ) diff --git a/tests/go/types_test.go b/tests/go/types_test.go index d81bf62a..609ea59e 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/bytecodealliance/wrpc/tests/go/bindings/types ../wit +//go:generate $WIT_BINDGEN_WRPC go --gofmt=false --world types --out-dir bindings/types --package wrpc.io/tests/go/bindings/types ../wit package integration_test @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" - wrpc "github.com/bytecodealliance/wrpc/go" - "github.com/bytecodealliance/wrpc/tests/go/bindings/types/wrpc_test/integration/get_types" + wrpc "wrpc.io/go" + "wrpc.io/tests/go/bindings/types/wrpc_test/integration/get_types" ) type indexReader struct {