I maintain all my proto files in one folder. An overview:
protos
|
|__auth
|
|__some_other
Inside auth
directory I have auth_service.proto
user.proto
etc.
But I am having issues with importing definitions form user.proto
In auth_service.proto
:
syntax="proto3";
package auth;
import "auth/user.proto"; // Import "auth/user.proto" was not found or had errors.
message SomeMessage {
User user = 1; // user is not defined
}
user.proto has the same package name:
syntax="proto3";
package auth;
message User{}
Protoc version: libprotoc : 3.19.4