diff options
| author | Jeff Carr <[email protected]> | 2024-12-04 15:35:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-04 15:35:27 -0600 |
| commit | 5846d5e4affbb2c2a220453a3de3c335b43cd2d6 (patch) | |
| tree | 91aee00b4965e12d38bbfaf4488dcb1535e0ca42 /main.go | |
| parent | f888dab0f223ae4b41de232e941a62a46f978309 (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -52,6 +52,18 @@ func main() { os.Exit(-1) } + // have to figure out how to run protoc so initialize forge + forge = forgepb.Init() + + gosrc := forge.GetGoSrc() + pwd, _ := os.Getwd() + + if strings.HasPrefix(pwd, gosrc) { + log.Info("does match", pwd, "vs", gosrc) + } else { + log.Info("does not match. should exit(-1) here", pwd, "vs", gosrc) + } + if !shell.Exists("go.sum") { shell.RunQuiet([]string{"go", "mod", "init"}) shell.RunQuiet([]string{"go", "mod", "tidy"}) |
