From a7619389df4fc214e52e3db7c8336514bdcc82b0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 18 Feb 2024 17:55:59 -0600 Subject: attempting to fix guireleaser --- checkReady.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'checkReady.go') diff --git a/checkReady.go b/checkReady.go index b51ba48..270d836 100644 --- a/checkReady.go +++ b/checkReady.go @@ -29,7 +29,7 @@ func CheckReady() bool { log.Info("find the next repo first") return false } - goSumS := release.current.Status.GetGoSumStatus() + goSumS := release.current.GoState() dirtyS := release.current.State() lastS := release.current.Status.GetLastTagVersion() currentS := release.current.Status.GetCurrentBranchVersion() @@ -44,7 +44,7 @@ func CheckReady() bool { } if goSumS == "PRIMATIVE" { if targetS == lastS { - release.current.Status.SetGoSumStatus("RELEASED") + release.current.SetGoState("RELEASED") } return true } @@ -53,15 +53,15 @@ func CheckReady() bool { } if goSumS == "READY" { if targetS == lastS { - release.current.Status.SetGoSumStatus("RELEASED") + release.current.SetGoState("RELEASED") return true } if lastS == currentS { - release.current.Status.SetGoSumStatus("UNRELEASED") + release.current.SetGoState("UNRELEASED") } return true } - release.current.Status.SetGoSumStatus("NOT READY") + release.current.SetGoState("NOT READY") if release.current.Status.ReadOnly() { log.Info("\trepo is read only") return false @@ -69,12 +69,12 @@ func CheckReady() bool { if targetS == lastS { log.Info("\trepo is already done", lastS, "=", targetS) - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } if lastS == currentS { log.Info("\trepo is already done", lastS, "=", targetS) - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } @@ -129,7 +129,7 @@ func CheckReady() bool { return false } - release.current.Status.SetGoSumStatus("READY") + release.current.SetGoState("READY") return true } -- cgit v1.2.3