diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 06:37:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 06:37:00 -0600 |
| commit | ee7e8d5b2ba38bcc53b210c9a04ccff0de4a4f19 (patch) | |
| tree | f7de75c50610d1fd7891834c9af7f0e555c145ce /build.go | |
| parent | b2e51ccb9efc326fda8615b1d2ad9f2ea3f16652 (diff) | |
lots of changes in gitpb
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) } |
