From dace8213c83d28e959e0d9198a3b9b901e027185 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 27 Oct 2021 01:09:40 +0300 Subject: [PATCH] update import paths Signed-off-by: Vasiliy Tolstov --- go.mod | 4 ++-- go.sum | 8 ++++---- registry.go | 6 +++--- registry_test.go | 5 +++-- table.go | 6 +++--- table_test.go | 6 ++---- watcher.go | 2 +- 7 files changed, 18 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index fc20441..7d44f34 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module github.com/unistack-org/micro-router-register/v3 +module go.unistack.org/micro-router-register/v3 go 1.16 -require github.com/unistack-org/micro/v3 v3.7.8 +require go.unistack.org/micro/v3 v3.8.5 diff --git a/go.sum b/go.sum index 608b91f..9cb93f2 100644 --- a/go.sum +++ b/go.sum @@ -6,10 +6,10 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/silas/dag v0.0.0-20210626123444-3804bac2d6d4/go.mod h1:7RTUFBdIRC9nZ7/3RyRNH1bdqIShrDejd1YbLwgPS+I= -github.com/unistack-org/micro-proto v0.0.9 h1:KrWLS4FUX7UAWNAilQf70uad6ZPf/0EudeddCXllRVc= -github.com/unistack-org/micro-proto v0.0.9/go.mod h1:Cckwmzd89gvS7ThxzZp9kQR/EOdksFQcsTAtDDyKwrg= -github.com/unistack-org/micro/v3 v3.7.8 h1:ytrJhomev32w5QdZ53G6uINHh9XDV6t6MyDz4p9b84c= -github.com/unistack-org/micro/v3 v3.7.8/go.mod h1:Ke/8WJlNZi4ZYwL9HcsANAbQ66/HocTBEZM+od99/mM= +go.unistack.org/micro-proto/v3 v3.1.0 h1:q39FwjFiRZn+Ux/tt+d3bJTmDtsQQWa+3SLYVo1vLfA= +go.unistack.org/micro-proto/v3 v3.1.0/go.mod h1:DpRhYCBXlmSJ/AAXTmntvlh7kQkYU6eFvlmYAx4BQS8= +go.unistack.org/micro/v3 v3.8.5 h1:DIYWRsQF+NPhKZP45sCtNsUhaRw6u2+Ps7U+pKU7i3s= +go.unistack.org/micro/v3 v3.8.5/go.mod h1:KMMmOmbgo/D52/rCAbqeKbBsgEEbSKM69he54J3ZIuA= golang.org/x/net v0.0.0-20210928044308-7d9f5e0b762b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/registry.go b/registry.go index 0f93b27..1960b40 100644 --- a/registry.go +++ b/registry.go @@ -5,9 +5,9 @@ import ( "sync" "time" - "github.com/unistack-org/micro/v3/logger" - "github.com/unistack-org/micro/v3/register" - "github.com/unistack-org/micro/v3/router" + "go.unistack.org/micro/v3/logger" + "go.unistack.org/micro/v3/register" + "go.unistack.org/micro/v3/router" ) var ( diff --git a/registry_test.go b/registry_test.go index 7e729c3..fcd1b3e 100644 --- a/registry_test.go +++ b/registry_test.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package register @@ -6,8 +7,8 @@ import ( "os" "testing" - "github.com/unistack-org/micro/v3/register/memory" - "github.com/unistack-org/micro/v3/router" + "go.unistack.org/micro/v3/register/memory" + "go.unistack.org/micro/v3/router" ) func routerTestSetup() router.Router { diff --git a/table.go b/table.go index 6f49162..2d3c483 100644 --- a/table.go +++ b/table.go @@ -4,9 +4,9 @@ import ( "sync" "time" - "github.com/unistack-org/micro/v3/logger" - "github.com/unistack-org/micro/v3/router" - "github.com/unistack-org/micro/v3/util/id" + "go.unistack.org/micro/v3/logger" + "go.unistack.org/micro/v3/router" + "go.unistack.org/micro/v3/util/id" ) // table is an in-memory routing table diff --git a/table_test.go b/table_test.go index 1fd53dc..de455c3 100644 --- a/table_test.go +++ b/table_test.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package register @@ -6,7 +7,7 @@ import ( "fmt" "testing" - "github.com/unistack-org/micro/v3/router" + "go.unistack.org/micro/v3/router" ) func testSetup(t *testing.T) (*table, router.Route) { @@ -301,7 +302,6 @@ func TestQuery(t *testing.T) { } func TestFallback(t *testing.T) { - r := &rtr{ options: router.NewOptions(), } @@ -336,7 +336,6 @@ func TestFallback(t *testing.T) { if len(rts) != 1 { t.Fatalf("incorrect number of routes returned %d", len(rts)) } - } func TestFallbackError(t *testing.T) { @@ -351,5 +350,4 @@ func TestFallbackError(t *testing.T) { if err == nil { t.Fatalf("expected error looking up service but none returned") } - } diff --git a/watcher.go b/watcher.go index 94f0369..03af867 100644 --- a/watcher.go +++ b/watcher.go @@ -3,7 +3,7 @@ package register import ( "sync" - "github.com/unistack-org/micro/v3/router" + "go.unistack.org/micro/v3/router" ) // tableWatcher implements routing table Watcher