diff options
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) |
