summaryrefslogtreecommitdiff
path: root/protoc.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 19:45:48 -0600
committerJeff Carr <[email protected]>2025-01-08 19:45:48 -0600
commit3fe2fde185b950215008e67a50364ec741f2fd09 (patch)
tree25392d9c486a324afe61239d54b5e4395d3a3000 /protoc.go
parent0a1eb821e9123f4e6793b410300803c610d4b804 (diff)
make a protofile for the app itself
that turns out to be a lot of fun!
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)