I want to import .proto file defined in different project into my golang project and use a message type defined in it.
Proto file I want to import is: https://github.com/lyft/clutch/blob/main/api/k8s/v1/k8s.proto
I have added the import statement as :
import "github.com/lyft/clutch/api/k8s/v1/k8s.proto";
to use message type "Job" in that file, I added
message Jobs {
repeated clutch.k8s.v1.Job job = 1;
}
When I try to compile proto file, I'm getting the error
Import "github.com/lyft/clutch/blob/main/api/k8s/v1/k8s.proto" was not found or had errors.
"clutch.k8s.v1.Job" is not defined.