diff options
Diffstat (limited to 'repoSettings.go')
| -rw-r--r-- | repoSettings.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/repoSettings.go b/repoSettings.go index c44ea58..9b03ad1 100644 --- a/repoSettings.go +++ b/repoSettings.go @@ -15,7 +15,7 @@ import ( ) /* -func (f *Forge) SortByPath() *ForgeConfigIterator { +func (f *Forge) SortByGoPath() *ForgeConfigIterator { return f.Config.SortByPath() } */ @@ -37,7 +37,7 @@ func (all *ForgeConfigs) UpdateGoPath(name string, gopath string) bool { func (f *Forge) IsReadOnly(gopath string) bool { var match *ForgeConfig - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == gopath { @@ -98,7 +98,7 @@ func (f *Forge) DebName(gopath string) string { // get "zookeeper" from "go.wit.com/apps/zookeeper" normalBase := filepath.Base(gopath) - loop := f.Config.SortByPath() + loop := f.Config.SortByGoPath() for loop.Scan() { r := loop.Next() if r.GoPath == gopath { @@ -127,7 +127,7 @@ func (f *Forge) IsPrivate(thing string) bool { // sort by path means the simple 'match' logic // here works in the sense the last directory match // is the one that is used - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == thing { @@ -168,7 +168,7 @@ func (f *Forge) IsPrivate(thing string) bool { func (f *Forge) IsFavorite(thing string) bool { var match *ForgeConfig - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == thing { |
