• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 24508266115
66%

Build:
DEFAULT BRANCH: main
Ran 16 Apr 2026 11:47AM UTC
Jobs 1
Files 631
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Apr 2026 11:42AM UTC coverage: 65.783% (-0.03%) from 65.812%
24508266115

push

github

web-flow
Enforce go.mod patch version check in Taskfile and CI (#4864)

* Add go.mod patch version convention to go-style rules

Codify the convention that the go directive in go.mod files must not
include a patch version (e.g. go 1.23, not go 1.23.4) to prevent
unnecessary churn when toolchains update.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Move go.mod convention to dedicated go-modules rule file

Split the go directive version rule out of go-style.md into its own
.claude/rules/go-modules.md so it only triggers on go.mod files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Enforce go.mod patch version check in Taskfile and CI

Add a check to lint task and lint.yml CI workflow that fails if any
go.mod file specifies a patch version in the go directive. Remove the
now-redundant Claude rule file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Extract go.mod version check into a reusable script

Move the inline check from Taskfile and CI into scripts/check-go-mod-version.sh
so the logic lives in one place. Remove the Claude rule since the check is
now deterministically enforced by tooling.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Simplify go.mod version check to a one-liner in lint CI

Drop the dedicated script and Taskfile task in favour of a single
grep in lint.yml. There is only one go.mod in the repo so the
recursive search and extra indirection were unnecessary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix go.mod version check to correctly reject patch versions

grep -qvE inverts the match and exits 0 as soon as any non-matching
line is found, making the check a no-op. Use ! grep -qE instead so
the step fails only when the patch-version pattern is actually present.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

57264 of 87050 relevant lines covered (65.78%)

60.66 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
74.44
-5.19% pkg/client/config.go
11
68.83
-14.29% pkg/client/discovery.go
8
23.56
-4.6% pkg/client/manager.go
Jobs
ID Job ID Ran Files Coverage
1 24508266115.1 16 Apr 2026 11:47AM UTC 631
65.78
GitHub Action Run
Source Files on build 24508266115
  • Tree
  • List 631
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24508266115
  • d5addcd7 on github
  • Prev Build on main (#24506764464)
  • Next Build on main (#24509077251)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc