diff options
| author | Jeff Carr <[email protected]> | 2025-01-09 05:49:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-09 05:49:23 -0600 |
| commit | a4beeca8579f23560eb30ba3acd75a533ed1d4d8 (patch) | |
| tree | cdc2eed5e9fc76bd29cef5ab5e2f8619ef08ac1d /protoc.go | |
| parent | 78bfce745b3a966e34c8468eabf925c43167ae44 (diff) | |
mutex's are being added to the protoc pb.go file
Diffstat (limited to 'protoc.go')
| -rw-r--r-- | protoc.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |
