check go.wit.com is mapping a repo

This commit is contained in:
Jeff Carr 2024-02-13 16:17:29 -06:00
parent d7a0246af9
commit 95fd6ca05a
1 changed files with 12 additions and 0 deletions

View File

@ -191,6 +191,18 @@ func (rs *RepoStatus) readGitConfig() error {
return nil
}
func (rs *RepoStatus) GitURL() string {
origin, ok := rs.gitConfig.remotes["origin"]
if ok {
return origin.url
}
for i, s := range rs.gitConfig.remotes {
log.Log(WARN, "remote:", i, s.url)
}
log.Log(WARN, "GitURL() repo has non-standard origin or is not uploaded")
return ""
}
// this checks to see if the repo is truly not dependent on _anything_ else
// like spew or lib/widget
func (rs *RepoStatus) CheckPrimativeGoMod() bool {