summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
Diffstat (limited to 'build.go')
-rw-r--r--build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.go b/build.go
index f67b137..7ecbd3b 100644
--- a/build.go
+++ b/build.go
@@ -62,7 +62,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
all := repo.GoDeps.SortByGoPath()
for all.Scan() {
t := all.Next()
- found := f.FindByGoPath(t.GetGoPath())
+ found := f.FindByNamespace(t.GetGoPath())
if found.GetRepoType() == "protobuf" {
if err := f.runAutogenpb(found); err != nil {
return err
@@ -200,7 +200,7 @@ func (f *Forge) FindWorkingDirRepo() *gitpb.Repo {
pwd, _ := os.Getwd()
basedir := strings.TrimPrefix(pwd, f.Config.ReposDir)
basedir = strings.Trim(basedir, "/")
- return f.FindByGoPath(basedir)
+ return f.FindByNamespace(basedir)
}
// Never do this. this is stupid. fix your repo