fixed protobuf path reference

This commit is contained in:
David Zhao
2021-03-19 23:27:22 -07:00
parent cbff518607
commit 6aee50b397
6 changed files with 702 additions and 697 deletions
+9 -9
View File
@@ -44,11 +44,11 @@ func Deps() error {
// regenerate protobuf
func Proto() error {
protoDir := "../protocol"
updated, err := target.Path("proto/model.pb.go",
protoDir+"/model.proto",
protoDir+"/room.proto",
protoDir+"/rtc.proto",
protoDir+"/internal.proto",
updated, err := target.Path("proto/livekit_models.pb.go",
protoDir+"/livekit_models.proto",
protoDir+"/livekit_room.proto",
protoDir+"/livekit_rtc.proto",
protoDir+"/livekit_internal.proto",
)
if err != nil {
return err
@@ -85,7 +85,7 @@ func Proto() error {
"--plugin=go="+protoc_go_path,
"--plugin=twirp="+twirp_path,
"-I="+protoDir,
protoDir+"/room.proto",
protoDir+"/livekit_room.proto",
)
connectStd(cmd)
if err := cmd.Run(); err != nil {
@@ -98,9 +98,9 @@ func Proto() error {
"--go_opt=paths=source_relative",
"--plugin=go="+protoc_go_path,
"-I="+protoDir,
protoDir+"/rtc.proto",
protoDir+"/internal.proto",
protoDir+"/model.proto",
protoDir+"/livekit_rtc.proto",
protoDir+"/livekit_internal.proto",
protoDir+"/livekit_models.proto",
)
connectStd(cmd)
if err := cmd.Run(); err != nil {