diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 23:33:02 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 23:33:02 +0300 |
| commit | b3cf20116d403e4437a2aaa726bdcf188109cf9f (patch) | |
| tree | f3df619a55c5e49aeeeadbe7f360fba0f608b9d1 /Magefile.go | |
| parent | 57a81faaca039d438f217e4e6924899762ca916d (diff) | |
Diffstat (limited to 'Magefile.go')
| -rw-r--r-- | Magefile.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Magefile.go b/Magefile.go index 65748fd..71fdc1f 100644 --- a/Magefile.go +++ b/Magefile.go @@ -25,8 +25,8 @@ var ( // Build builds binaries. func Build() error { - mg.Deps(BuildAsk, BuildHexaiLSP, BuildHexaiCLI, BuildHexaiTmuxAction, BuildHexaiTmuxEdit, BuildHexaiMCPServer) printCoverage() + mg.Deps(BuildAsk, BuildHexaiLSP, BuildHexaiCLI, BuildHexaiTmuxAction, BuildHexaiTmuxEdit, BuildHexaiMCPServer) return nil } @@ -143,8 +143,6 @@ func RunTmuxAction() error { // printCoverage prints a warning if an existing coverage profile shows total < coverateThreshold. func printCoverage() { - // Ensure the top-level coverage profile is refreshed at least once per day. - ensureDailyCoverage(24 * time.Hour) select { case coveragePrinted <- struct{}{}: default: @@ -152,6 +150,9 @@ func printCoverage() { return } + // Ensure the top-level coverage profile is refreshed at most once per Mage invocation. + ensureDailyCoverage(24 * time.Hour) + profile := "" if _, err := os.Stat("docs/coverage.out"); err == nil { profile = "docs/coverage.out" |
