From c4e47e4fbe4b5435788a43500a3ae84e8fdec6aa Mon Sep 17 00:00:00 2001 From: JimhHan <50871214+JimhHan@users.noreply.github.com> Date: Thu, 29 Oct 2020 09:04:12 +0800 Subject: [PATCH] fix: vprotogen in windows (#365) --- proto.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proto.go b/proto.go index d5f724962..0b97ffc76 100644 --- a/proto.go +++ b/proto.go @@ -1,5 +1,7 @@ package core +import "path/filepath" + //go:generate go install -v google.golang.org/protobuf/cmd/protoc-gen-go //go:generate go install -v google.golang.org/grpc/cmd/protoc-gen-go-grpc //go:generate go install -v github.com/gogo/protobuf/protoc-gen-gofast @@ -7,4 +9,4 @@ package core // ProtoFilesUsingProtocGenGoFast is the map of Proto files // that use `protoc-gen-gofast` to generate pb.go files -var ProtoFilesUsingProtocGenGoFast = map[string]bool{"proxy/vless/encoding/addons.proto": true} +var ProtoFilesUsingProtocGenGoFast = map[string]bool{filepath.Join("proxy", "vless", "encoding", "addons.proto"): true}