$ protoc --go_out=module=github.com/redmcme/go-protos:. \
--go-grpc_out=module=github.com/redmcme/go-protos:. \
--proto_path ../protos \
../protos/*/**
teams.team: File not found.
teams/season.proto:3:1: Import "teams.team" was not found or had errors.
teams/season.proto:22:18: "team.Team" is not defined.构建命令^
$ ltt ../protos
../protos
├── skyblock
│ └── player.proto
└── teams
├── season.proto
└── team.proto目录树^
// team.proto
syntax = "proto3";
package teams.team;
option go_package = "github.com/redmcme/go-protos/teams/team";
...Team ^ // season.proto语法= "proto3";
import "teams.team";
package teams.season;
option go_package = "github.com/redmcme/go-protos/teams/season";季节前哨^
有谁知道protoc为什么找不到这个导入?
发布于 2022-09-15 14:08:01
导入"teams.team“是错误的
真正的方法是导入"team.proto“或导入”teams/Team.proto“
https://stackoverflow.com/questions/73727660
复制相似问题