diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,7 +8,7 @@ import ( "unicode" "go.wit.com/log" - // "go.wit.com/gui/gui" + "go.wit.com/lib/gui/shell" ) // reports externally if something has changed @@ -164,7 +164,8 @@ func (rs *RepoStatus) RepoType() string { return "" } os.Setenv("GO111MODULE", "off") - r := rs.Run([]string{"go", "list", "-f", "'{{if eq .Name \"main\"}}binary{{else}}library{{end}}'"}) + cmd := []string{"go", "list", "-f", "'{{if eq .Name \"main\"}}binary{{else}}library{{end}}'"} + r := shell.PathRunLog(rs.Path(), cmd, INFO) output := strings.TrimSpace(strings.Join(r.Stdout, "\n")) if r.Error != nil { log.Info("go package error:", r.Error) |
