summaryrefslogtreecommitdiff
path: root/protoc.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-09 05:49:23 -0600
committerJeff Carr <[email protected]>2025-01-09 05:49:23 -0600
commita4beeca8579f23560eb30ba3acd75a533ed1d4d8 (patch)
treecdc2eed5e9fc76bd29cef5ab5e2f8619ef08ac1d /protoc.go
parent78bfce745b3a966e34c8468eabf925c43167ae44 (diff)
mutex's are being added to the protoc pb.go file
Diffstat (limited to 'protoc.go')
-rw-r--r--protoc.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/protoc.go b/protoc.go
index bab8c80..a390abd 100644
--- a/protoc.go
+++ b/protoc.go
@@ -35,7 +35,7 @@ import (
// --go_opt=MforgeConfig.proto=go.wit.com/apps/autogenpb/testautogen \
// forgeConfig.proto
-func (pb *Files) protocBuild(f *File, pbfile string) error {
+func (pb *Files) protocBuild(f *File) error {
// read in the .proto file
data, err := os.ReadFile(f.Filename)
if err != nil {
@@ -43,11 +43,11 @@ func (pb *Files) protocBuild(f *File, pbfile string) error {
return err
}
- if shell.Exists(pbfile) {
- log.Info("protoc file already created", pbfile)
+ if shell.Exists(f.Pbfilename) {
+ log.Info("protoc file already created", f.Pbfilename)
return nil
}
- log.Info("Attempt to generate the protoc file:", pbfile)
+ log.Info("Attempt to generate the protoc file:", f.Pbfilename)
// log.Info("go src", forge.GetGoSrc())
pwd, _ := os.Getwd()
log.Info("go.Getwd()", pwd)