attempt to pull down git notes

This commit is contained in:
Jeff Carr 2024-12-15 21:10:25 -06:00
parent 41671d1298
commit 232477808f
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ func makeValidGoSum(check *gitpb.Repo) error {
log.Info(check.GoPath, "is a golang primitive! no need to parse go.sum because there is not one!") log.Info(check.GoPath, "is a golang primitive! no need to parse go.sum because there is not one!")
return nil return nil
} }
// attempt to grab the notes
check.Run([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"})
// first try to generate go.mod & go.sum with go-mod-clean // first try to generate go.mod & go.sum with go-mod-clean
if err := check.ValidGoSum(); err != nil { if err := check.ValidGoSum(); err != nil {
log.Info("try running go-mod-clean") log.Info("try running go-mod-clean")