diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 11:36:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 11:36:49 -0500 |
| commit | db6312dc4abcd13b6f1f883ace60ef3bed12173e (patch) | |
| tree | 067a7c18cc8e7ac1ccfa42f8bf15b673cf954ae3 /repo.common.go | |
| parent | cd5c29e5bcb1b2875baa687ddab0ccb3e69f94d5 (diff) | |
hopefully not a mistakev0.0.153
Diffstat (limited to 'repo.common.go')
| -rw-r--r-- | repo.common.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
