diff options
| author | Jeff Carr <[email protected]> | 2024-01-26 14:21:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-26 14:21:05 -0600 |
| commit | 3388a2dc2c0560278a01e14abe53dc30bfecaee3 (patch) | |
| tree | b9655c42d954aa47dc2ec9661ccbae509cadf666 /listWindow.go | |
| parent | 0e979faf5b6ef2d8b37fd63835824bf5405cbc08 (diff) | |
disable already downloaded repos
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'listWindow.go')
| -rw-r--r-- | listWindow.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/listWindow.go b/listWindow.go index c883bd2..1819b96 100644 --- a/listWindow.go +++ b/listWindow.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "net/http" "os" + "path/filepath" "strings" "go.wit.com/gui" @@ -94,8 +95,12 @@ func (s *section) add(path string) { lw.Disable() log.Info("downloading", tmp.path.String(), "here") os.Setenv("GO111MODULE", "off") - fullpath := "/home/jcarr/go/src/go.wit.com/" - quickCmd(fullpath, []string{"go", "get", "-v", tmp.path.String()}) + + goSrcDir := me.goSrcPwd.String() + quickCmd(goSrcDir, []string{"go", "get", "-v", tmp.path.String()}) + + fullpath := filepath.Join(goSrcDir, tmp.path.String()) + quickCmd(fullpath, []string{"go", "get", "-v", "-u", "."}) lw.Enable() }) if repostatus.VerifyLocalGoRepo(path) { |
