From db6312dc4abcd13b6f1f883ace60ef3bed12173e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 11:36:49 -0500 Subject: hopefully not a mistake --- repo.common.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'repo.common.go') diff --git a/repo.common.go b/repo.common.go index 2289eed..9e1233d 100644 --- a/repo.common.go +++ b/repo.common.go @@ -26,6 +26,10 @@ func (r *Repo) IsGoPlugin() bool { return false } +func (repo *Repo) IsProtobuf() bool { + return repo.GoInfo.GoProtobuf +} + // This returns the list of autogenerated protobuf files // it assumes any file *.pb.go is autogenerated // @@ -33,7 +37,7 @@ func (r *Repo) IsGoPlugin() bool { // these packages also use go.wit.com/apps/autogenpb // // errors() if a .proto file does not have an autogenerated .pb.go file -func (repo *Repo) IsProtobuf() (bool, []string, error) { +func (repo *Repo) ScanProtobuf() (bool, []string, error) { fullp, fullc, err := scanForProtobuf(repo.FullPath) protos := make(map[string]string) protoc := make(map[string]string) -- cgit v1.2.3