mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:42:16 -05:00
Fix path in go package for generated files
This commit is contained in:
6
Makefile
6
Makefile
@@ -173,19 +173,19 @@ $(PROTO_SRC)/settings.pb.go: $(PROTO_SRC)/settings.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--go_out=$(PROTO_SRC) settings.proto
|
||||
--go_out=. settings.proto
|
||||
|
||||
$(PROTO_SRC)/settings.pb.micro.go: $(PROTO_SRC)/settings.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--micro_out=$(PROTO_SRC) settings.proto
|
||||
--micro_out=. settings.proto
|
||||
|
||||
$(PROTO_SRC)/settings.pb.web.go: $(PROTO_SRC)/settings.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--microweb_out=$(PROTO_SRC) settings.proto
|
||||
--microweb_out=. settings.proto
|
||||
|
||||
$(PROTO_SRC)/settings.swagger.json: $(PROTO_SRC)/settings.proto
|
||||
protoc \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package proto;
|
||||
option go_package = ".;proto";
|
||||
option go_package = "pkg/proto/v0;proto";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "protoc-gen-swagger/options/annotations.proto";
|
||||
|
||||
Reference in New Issue
Block a user