From 4fdcc992412ab2b06b5314f27a6f20b4c73b7ef6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 12 Feb 2025 15:10:13 -0600 Subject: use fhelp package to attempt to install protoc --- protoc.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'protoc.go') diff --git a/protoc.go b/protoc.go index d8dcf7e..4d1bec7 100644 --- a/protoc.go +++ b/protoc.go @@ -96,16 +96,18 @@ func (pb *Files) protocBuild(pf *File) error { for i, s := range cmd { log.Info("\t", i, s) } - return runprotoc(argv.GoSrc, cmd) + os.Chdir(argv.GoSrc) + _, err = shell.RunVerbose(cmd) + return err } +/* func runprotoc(pwd string, mycmd []string) error { - result := shell.PathRun(argv.GoSrc, mycmd) - if result.Error != nil { - return userNotes(result) - } - if result.Exit != 0 { - return userNotes(result) + os.Chdir(argv.GoSrc) + err := shell.Exec(mycmd) + if err != nil { + return err } return nil } +*/ -- cgit v1.2.3