diff options
Diffstat (limited to 'goSrcFind.go')
| -rw-r--r-- | goSrcFind.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/goSrcFind.go b/goSrcFind.go index 938ebe5..02b7659 100644 --- a/goSrcFind.go +++ b/goSrcFind.go @@ -8,14 +8,13 @@ import ( "fmt" "os" "path/filepath" - - "go.wit.com/log" ) func (f *Forge) GetHome() string { - return f.goSrc + return f.Config.ReposDir } +/* // look for a go.work file // otherwise use ~/go/src func (f *Forge) findGoSrc() (string, error) { @@ -57,7 +56,7 @@ func useGoSrc() (string, error) { func (f *Forge) goWorkExists() bool { var err error - workFilePath := filepath.Join(f.GetGoSrc(), "go.work") + workFilePath := filepath.Join(f.Config.ReposDir, "go.work") if _, err = os.Stat(workFilePath); err == nil { // log.Info("f.goWorkExists() found", workFilePath) return true @@ -69,6 +68,7 @@ func (f *Forge) goWorkExists() bool { // log.Info("f.goWorkExists() os.Stat() error", err, workFilePath) return false } +*/ func digup(path string) (string, error) { for { |
