From 525c73c4a9f6c51cb4c7df16d7e057e121ca262a Mon Sep 17 00:00:00 2001 From: Caster Date: Tue, 17 Oct 2023 14:17:46 +0800 Subject: [PATCH] chore: replace module path --- .sage/go.mod | 2 +- .sage/go.sum | 4 ++-- README.md | 2 +- go.mod | 4 +++- internal/plugin/commentgen.go | 2 +- internal/plugin/enumgen.go | 2 +- internal/plugin/generate.go | 2 +- internal/plugin/jsonleafwalk.go | 2 +- internal/plugin/messagegen.go | 2 +- internal/plugin/packagegen.go | 4 ++-- internal/plugin/servicegen.go | 4 ++-- main.go | 2 +- 12 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.sage/go.mod b/.sage/go.mod index 2486ea3..06a1a9b 100644 --- a/.sage/go.mod +++ b/.sage/go.mod @@ -2,4 +2,4 @@ module sage go 1.17 -require go.einride.tech/sage v0.216.0 +require go.einride.tech/sage v0.243.0 diff --git a/.sage/go.sum b/.sage/go.sum index eb871ed..e62f0f3 100644 --- a/.sage/go.sum +++ b/.sage/go.sum @@ -1,2 +1,2 @@ -go.einride.tech/sage v0.216.0 h1:gjzooF3mJaKi2+BxgZ94OnCL60CouTGZXj6gclZwQSQ= -go.einride.tech/sage v0.216.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ= +go.einride.tech/sage v0.243.0 h1:Hjz/DyHte7F1+2tp/XUtHLVFHbKM8jBiqFHa+J+dbh8= +go.einride.tech/sage v0.243.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ= diff --git a/README.md b/README.md index 0930342..a793713 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ For examples of correctly annotated protobuf defintions and the generated code, ### Install the plugin ```bash -go get go.einride.tech/protoc-gen-typescript-http +go get github.com/moecasts/protoc-gen-typescript-http ``` Or download a prebuilt binary from [releases](./releases). diff --git a/go.mod b/go.mod index 964aec5..07e01b0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.einride.tech/protoc-gen-typescript-http +module github.com/moecasts/protoc-gen-typescript-http go 1.17 @@ -13,3 +13,5 @@ require ( github.com/golang/protobuf v1.5.0 // indirect github.com/google/go-cmp v0.5.5 // indirect ) + +retract [v0.0.1, v0.1.0] // inavailable version diff --git a/internal/plugin/commentgen.go b/internal/plugin/commentgen.go index 17548bf..ace9b8a 100644 --- a/internal/plugin/commentgen.go +++ b/internal/plugin/commentgen.go @@ -3,7 +3,7 @@ package plugin import ( "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" "google.golang.org/genproto/googleapis/api/annotations" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/internal/plugin/enumgen.go b/internal/plugin/enumgen.go index d189d65..b2841a3 100644 --- a/internal/plugin/enumgen.go +++ b/internal/plugin/enumgen.go @@ -3,7 +3,7 @@ package plugin import ( "strconv" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/internal/plugin/generate.go b/internal/plugin/generate.go index 3c19323..92cdd53 100644 --- a/internal/plugin/generate.go +++ b/internal/plugin/generate.go @@ -5,7 +5,7 @@ import ( "path" "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/internal/plugin/jsonleafwalk.go b/internal/plugin/jsonleafwalk.go index 31d4975..3006b32 100644 --- a/internal/plugin/jsonleafwalk.go +++ b/internal/plugin/jsonleafwalk.go @@ -1,7 +1,7 @@ package plugin import ( - "go.einride.tech/protoc-gen-typescript-http/internal/httprule" + "github.com/moecasts/protoc-gen-typescript-http/internal/httprule" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/internal/plugin/messagegen.go b/internal/plugin/messagegen.go index 2cf04f1..57fafef 100644 --- a/internal/plugin/messagegen.go +++ b/internal/plugin/messagegen.go @@ -3,7 +3,7 @@ package plugin import ( "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/internal/plugin/packagegen.go b/internal/plugin/packagegen.go index bc6d062..6c33da8 100644 --- a/internal/plugin/packagegen.go +++ b/internal/plugin/packagegen.go @@ -3,8 +3,8 @@ package plugin import ( "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" - "go.einride.tech/protoc-gen-typescript-http/internal/protowalk" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/protowalk" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/internal/plugin/servicegen.go b/internal/plugin/servicegen.go index 7384989..a6549d9 100644 --- a/internal/plugin/servicegen.go +++ b/internal/plugin/servicegen.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/codegen" - "go.einride.tech/protoc-gen-typescript-http/internal/httprule" + "github.com/moecasts/protoc-gen-typescript-http/internal/codegen" + "github.com/moecasts/protoc-gen-typescript-http/internal/httprule" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/main.go b/main.go index 81b28ae..e74f2d6 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "go.einride.tech/protoc-gen-typescript-http/internal/plugin" + "github.com/moecasts/protoc-gen-typescript-http/internal/plugin" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/pluginpb" )