summaryrefslogtreecommitdiff
path: root/protoc.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-12 15:10:13 -0600
committerJeff Carr <[email protected]>2025-02-12 15:10:13 -0600
commit4fdcc992412ab2b06b5314f27a6f20b4c73b7ef6 (patch)
treee3954e80a2e509e22666cf181e3687ca0b819d36 /protoc.go
parenteaa7293fc7e21384c7e54700c92d6189150dda5b (diff)
use fhelp package to attempt to install protocv0.0.54v0.0.53
Diffstat (limited to 'protoc.go')
-rw-r--r--protoc.go16
1 files changed, 9 insertions, 7 deletions
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
}
+*/