summaryrefslogtreecommitdiff
path: root/protoc.go
diff options
context:
space:
mode:
Diffstat (limited to 'protoc.go')
-rw-r--r--protoc.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/protoc.go b/protoc.go
index 1214e7c..cc9246f 100644
--- a/protoc.go
+++ b/protoc.go
@@ -42,6 +42,11 @@ func protocBuild(names map[string]string) error {
pwd, _ := os.Getwd()
log.Info("go.Getwd()", pwd)
if !strings.HasPrefix(pwd, argv.GoSrc) {
+ log.Info("are you building using a go.work file? If so,")
+ log.Info("your paths will not match because the default")
+ log.Info("is to use ~/go/src so you have to specify")
+ log.Info("where your path is with --go-src")
+ log.Info("todo: use forgepb to figure this out")
return errors.New("paths don't match")
}
gopath := strings.TrimPrefix(pwd, argv.GoSrc)