diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 22:14:57 -0500 |
| commit | eda91e3af66e4c894f35c13a393a01238464b750 (patch) | |
| tree | 10135af0d368e2d68d267931673996bd9c8ee850 /goSrcFind.go | |
| parent | 6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff) | |
stop using GoSrc()
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 { |
