diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 06:34:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 06:34:27 -0600 |
| commit | 84c25d74da64460dc9c92cc05f78d288d3f8f59f (patch) | |
| tree | 80b2809f3678c156eaa421079f3d93e7f3cb0c17 /protoc.go | |
| parent | 50cafc85178b8fee356c6b3b0ac38e0a110841e1 (diff) | |
lots of fixes in gitpbv0.0.31
Diffstat (limited to 'protoc.go')
| -rw-r--r-- | protoc.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -36,13 +36,13 @@ func protocBuild(names map[string]string) error { // return nil } log.Info("make protoc file:", names["protoc"]) - log.Info("go src", forge.GetGoSrc()) + // log.Info("go src", forge.GetGoSrc()) pwd, _ := os.Getwd() log.Info("go.Getwd()", pwd) - if !strings.HasPrefix(pwd, forge.GetGoSrc()) { + if !strings.HasPrefix(pwd, argv.GoSrc) { return errors.New("paths don't match") } - gopath := strings.TrimPrefix(pwd, forge.GetGoSrc()) + gopath := strings.TrimPrefix(pwd, argv.GoSrc) gopath = strings.Trim(gopath, "/") log.Info("gopath", gopath) cmd := []string{"protoc", "--go_out=."} @@ -84,10 +84,10 @@ func protocBuild(names map[string]string) error { } cmd = append(cmd, names["protofile"]) - log.Info("\tpwd", forge.GetGoSrc()) + log.Info("\tpwd", argv.GoSrc) for i, s := range cmd { log.Info("\t", i, s) } - shell.PathRun(forge.GetGoSrc(), cmd) + shell.PathRun(argv.GoSrc, cmd) return nil } |
