diff --git a/cmd/gomu/README.md b/cmd/gomu/README.md index 430b391251..7f4ebe8051 100644 --- a/cmd/gomu/README.md +++ b/cmd/gomu/README.md @@ -9,7 +9,7 @@ Gomu is a helper tool for developing [Go Micro][1] projects. Installation is done by using the [`go install`][3] command. ```bash -go install github.com/asim/go-micro/cmd/gomu@latest +go install go-micro.dev/cmd/gomu@latest ``` Let's create a new service using the `new` command. @@ -48,7 +48,7 @@ You will need protoc-gen-micro for code generation # https://github.com/protocolbuffers/protobuf/releases go get -u google.golang.org/protobuf/proto go install github.com/golang/protobuf/protoc-gen-go@latest -go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest +go install go-micro.dev/cmd/protoc-gen-micro/v4@latest ``` ## Creating A Service @@ -67,7 +67,7 @@ download protobuf for go-micro: go get -u google.golang.org/protobuf/proto go install github.com/golang/protobuf/protoc-gen-go@latest -go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest +go install go-micro.dev/cmd/protoc-gen-micro/v4@latest compile the proto file helloworld.proto: @@ -90,7 +90,7 @@ download protobuf for go-micro: go get -u google.golang.org/protobuf/proto go install github.com/golang/protobuf/protoc-gen-go@latest -go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest +go install go-micro.dev/cmd/protoc-gen-micro/v4@latest compile the proto file helloworld.proto: @@ -143,7 +143,7 @@ import ( "context" "fmt" - "github.com/asim/go-micro/cmd/gomu/debug/trace" + "go-micro.dev/cmd/gomu/debug/trace" ) func Greet(ctx context.Context, name string) string { @@ -377,12 +377,12 @@ $ gomu stream bidi helloworld Helloworld.BidiStream '{"stroke": 1}' '{"stroke": This software is published under the [MIT license][10]. -[1]: https://github.com/asim/go-micro +[1]: https://go-micro.dev [2]: https://golang.org/dl/ [3]: https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies [4]: https://grpc.io/docs/protoc-installation/ [5]: https://micro.mu/github.com/golang/protobuf/protoc-gen-go -[6]: https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro +[6]: https://go-micro.dev/tree/master/cmd/protoc-gen-micro [7]: https://www.jaegertracing.io/ [8]: https://github.com/jaegertracing/jaeger-client-go#environment-variables [9]: https://skaffold.dev/ diff --git a/cmd/gomu/cmd/cli/call/call.go b/cmd/gomu/cmd/cli/call/call.go index f6bf08ca07..f5e2beaead 100644 --- a/cmd/gomu/cmd/cli/call/call.go +++ b/cmd/gomu/cmd/cli/call/call.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "go-micro.dev/v4" "go-micro.dev/v4/client" "github.com/urfave/cli/v2" diff --git a/cmd/gomu/cmd/cli/cli.go b/cmd/gomu/cmd/cli/cli.go index cf11632481..824ed849ed 100644 --- a/cmd/gomu/cmd/cli/cli.go +++ b/cmd/gomu/cmd/cli/cli.go @@ -1,11 +1,11 @@ package cli import ( - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/call" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/describe" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/generate" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/new" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/run" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/services" - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli/stream" + _ "go-micro.dev/cmd/gomu/cmd/cli/call" + _ "go-micro.dev/cmd/gomu/cmd/cli/describe" + _ "go-micro.dev/cmd/gomu/cmd/cli/generate" + _ "go-micro.dev/cmd/gomu/cmd/cli/new" + _ "go-micro.dev/cmd/gomu/cmd/cli/run" + _ "go-micro.dev/cmd/gomu/cmd/cli/services" + _ "go-micro.dev/cmd/gomu/cmd/cli/stream" ) diff --git a/cmd/gomu/cmd/cli/describe/describe.go b/cmd/gomu/cmd/cli/describe/describe.go index 6282f18982..30145bb30a 100644 --- a/cmd/gomu/cmd/cli/describe/describe.go +++ b/cmd/gomu/cmd/cli/describe/describe.go @@ -1,7 +1,7 @@ package describe import ( - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "github.com/urfave/cli/v2" ) diff --git a/cmd/gomu/cmd/cli/describe/service.go b/cmd/gomu/cmd/cli/describe/service.go index e791d23928..df3cea6fdc 100644 --- a/cmd/gomu/cmd/cli/describe/service.go +++ b/cmd/gomu/cmd/cli/describe/service.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "github.com/urfave/cli/v2" "gopkg.in/yaml.v2" ) diff --git a/cmd/gomu/cmd/cli/generate/generate.go b/cmd/gomu/cmd/cli/generate/generate.go index edbca5aef6..4b90f92f9e 100644 --- a/cmd/gomu/cmd/cli/generate/generate.go +++ b/cmd/gomu/cmd/cli/generate/generate.go @@ -6,9 +6,9 @@ import ( "os" "strings" - "github.com/asim/go-micro/cmd/gomu/cmd" - "github.com/asim/go-micro/cmd/gomu/generator" - tmpl "github.com/asim/go-micro/cmd/gomu/generator/template" + "go-micro.dev/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/generator" + tmpl "go-micro.dev/cmd/gomu/generator/template" "github.com/urfave/cli/v2" ) diff --git a/cmd/gomu/cmd/cli/new/new.go b/cmd/gomu/cmd/cli/new/new.go index eb1e500d17..b19524e398 100644 --- a/cmd/gomu/cmd/cli/new/new.go +++ b/cmd/gomu/cmd/cli/new/new.go @@ -6,9 +6,9 @@ import ( "path" "strings" - "github.com/asim/go-micro/cmd/gomu/cmd" - "github.com/asim/go-micro/cmd/gomu/generator" - tmpl "github.com/asim/go-micro/cmd/gomu/generator/template" + "go-micro.dev/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/generator" + tmpl "go-micro.dev/cmd/gomu/generator/template" "github.com/urfave/cli/v2" ) @@ -180,7 +180,7 @@ func protoComments(name, dir string) []string { "\ndownload protobuf for go-micro:\n", "go get -u google.golang.org/protobuf/proto", "go install github.com/golang/protobuf/protoc-gen-go@latest", - "go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest", + "go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest", "\ncompile the proto file " + name + ".proto:\n", "cd " + dir, "make proto tidy\n", diff --git a/cmd/gomu/cmd/cli/run/run.go b/cmd/gomu/cmd/cli/run/run.go index 0323d47f41..81a6ef3262 100644 --- a/cmd/gomu/cmd/cli/run/run.go +++ b/cmd/gomu/cmd/cli/run/run.go @@ -7,7 +7,7 @@ import ( "path/filepath" "strings" - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "go-micro.dev/v4/runtime" "go-micro.dev/v4/runtime/local/git" "github.com/fsnotify/fsnotify" diff --git a/cmd/gomu/cmd/cli/services/services.go b/cmd/gomu/cmd/cli/services/services.go index 375343209e..0343860318 100644 --- a/cmd/gomu/cmd/cli/services/services.go +++ b/cmd/gomu/cmd/cli/services/services.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "github.com/urfave/cli/v2" ) diff --git a/cmd/gomu/cmd/cli/stream/stream.go b/cmd/gomu/cmd/cli/stream/stream.go index 10b1b325f0..d0475c75ea 100644 --- a/cmd/gomu/cmd/cli/stream/stream.go +++ b/cmd/gomu/cmd/cli/stream/stream.go @@ -1,7 +1,7 @@ package stream import ( - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" "github.com/urfave/cli/v2" ) diff --git a/cmd/gomu/generator/template/main.go b/cmd/gomu/generator/template/main.go index 84fa109ade..416e891247 100644 --- a/cmd/gomu/generator/template/main.go +++ b/cmd/gomu/generator/template/main.go @@ -50,7 +50,7 @@ import ( {{end}} "go-micro.dev/v4" log "go-micro.dev/v4/logger"{{if .Jaeger}} - "github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}} + "go-micro.dev/cmd/gomu/debug/trace/jaeger"{{end}} ) var ( @@ -102,7 +102,7 @@ import ( {{end}} "go-micro.dev/v4" log "go-micro.dev/v4/logger"{{if .Jaeger}} - "github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}} + "go-micro.dev/cmd/gomu/debug/trace/jaeger"{{end}} ) var ( diff --git a/cmd/gomu/generator/template/makefile.go b/cmd/gomu/generator/template/makefile.go index 138adb2bda..2d6b8c3845 100644 --- a/cmd/gomu/generator/template/makefile.go +++ b/cmd/gomu/generator/template/makefile.go @@ -7,7 +7,7 @@ var Makefile = `GOPATH:=$(shell go env GOPATH) init: @go get -u google.golang.org/protobuf/proto @go install github.com/golang/protobuf/protoc-gen-go@latest - @go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest + @go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest .PHONY: proto proto: diff --git a/cmd/gomu/go.mod b/cmd/gomu/go.mod index 06e9cff134..1725477ea2 100644 --- a/cmd/gomu/go.mod +++ b/cmd/gomu/go.mod @@ -1,4 +1,4 @@ -module github.com/asim/go-micro/cmd/gomu +module go-micro.dev/cmd/gomu go 1.16 diff --git a/cmd/gomu/main.go b/cmd/gomu/main.go index 18a1201585..6ca3ee330f 100644 --- a/cmd/gomu/main.go +++ b/cmd/gomu/main.go @@ -1,10 +1,10 @@ package main import ( - "github.com/asim/go-micro/cmd/gomu/cmd" + "go-micro.dev/cmd/gomu/cmd" // register commands - _ "github.com/asim/go-micro/cmd/gomu/cmd/cli" + _ "go-micro.dev/cmd/gomu/cmd/cli" ) func main() {