2024-02-20 06:54:11 -06:00
|
|
|
package repostatus
|
|
|
|
|
|
|
|
// does processing on the go.mod and go.sum files
|
|
|
|
|
2025-01-07 18:45:34 -06:00
|
|
|
/*
|
2024-11-08 06:43:33 -06:00
|
|
|
// for now, even check cmd.Exit
|
|
|
|
func (rs *RepoStatus) strictRun(cmd []string) (bool, error) {
|
|
|
|
r := rs.Run(cmd)
|
|
|
|
if r.Error != nil {
|
|
|
|
log.Log(REPO, "go mod init failed err:", r.Error)
|
|
|
|
return false, r.Error
|
|
|
|
}
|
|
|
|
if r.Exit != 0 {
|
|
|
|
log.Log(REPO, "go mod init exit =", r.Exit)
|
|
|
|
return false, r.Error
|
|
|
|
}
|
|
|
|
return true, nil
|
|
|
|
}
|
2025-01-07 18:45:34 -06:00
|
|
|
*/
|
2024-11-08 06:43:33 -06:00
|
|
|
|
2024-11-30 02:03:17 -06:00
|
|
|
/*
|
2024-02-20 14:45:43 -06:00
|
|
|
func (rs *RepoStatus) IsReleased() bool {
|
|
|
|
if rs.GetTargetVersion() == rs.GetCurrentVersion() {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
2024-12-17 18:49:24 -06:00
|
|
|
*/
|