summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.go b/main.go
index 705b46e..52e2d31 100644
--- a/main.go
+++ b/main.go
@@ -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"})