summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
Diffstat (limited to 'build.go')
-rw-r--r--build.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.go b/build.go
index 1fcb5cc..c51eb83 100644
--- a/build.go
+++ b/build.go
@@ -66,8 +66,8 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
all := repo.GoDeps.SortByGoPath()
for all.Scan() {
t := all.Next()
- found := f.Repos.FindByGoPath(t.GetGoPath())
- if found.RepoType() == "protobuf" {
+ found := f.FindByGoPath(t.GetGoPath())
+ if found.GetRepoType() == "protobuf" {
if err := f.runAutogenpb(found); err != nil {
return err
}
@@ -82,7 +82,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
version = version + "-dirty"
}
cmd := []string{"go"}
- if repo.RepoType() == "plugin" {
+ if repo.GetRepoType() == "plugin" {
if goWhat == "install" {
log.Info("Can not go install plugins yet. just building to ~/go/lib/")
}
@@ -97,7 +97,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
linkname := fname + ".so"
sopath := filepath.Join(homeDir, "go/lib/go-gui")
// if this is a plugin, use buildmode=plugin
- if repo.RepoType() == "plugin" {
+ if repo.GetRepoType() == "plugin" {
if goWhat == "install" {
fullname := filepath.Join(sopath, soname)
cmd = append(cmd, "-buildmode=plugin", "-o", fullname)
@@ -155,7 +155,7 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
return errors.New("go " + goWhat + " failed: " + fmt.Sprint(result.Error))
}
// make symlinks
- if repo.RepoType() == "plugin" {
+ if repo.GetRepoType() == "plugin" {
cmd := []string{"ln", "-sf", soname, linkname}
if goWhat == "install" {
shell.PathRun(sopath, cmd)
@@ -204,5 +204,5 @@ func (f *Forge) FindWorkingDirRepo() *gitpb.Repo {
pwd, _ := os.Getwd()
basedir := strings.TrimPrefix(pwd, f.GetGoSrc())
basedir = strings.Trim(basedir, "/")
- return f.Repos.FindByGoPath(basedir)
+ return f.FindByGoPath(basedir)
}