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

go-playground / validator / 45656226551
73%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: fix-cyclic-alias-panic
DEFAULT BRANCH: v8
Ran 25 Nov 2026 04:39PM UTC
Jobs 1
Files 37
Run time 1min
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

25 Nov 2026 04:38PM UTC coverage: 72.69% (+0.02%) from 72.668%
45656226551

Pull #1703

github

draarivpatel-ui
fix: panic on cyclic aliases at registration instead of overflowing the stack

Registering aliases that form a cycle (loop -> loop, a -> b -> a, or
longer chains) made parseFieldTagsRecursive recurse without end the
first time the tag was used, killing the process with a fatal stack
overflow that recover() cannot catch.

RegisterAlias now walks the expansion of the alias being registered
through the already registered aliases and panics when it can reach
the alias again, so the misconfiguration is reported where it is
introduced. This fits the documented intent that aliases are
registered prior to any validation. Forward references to aliases
registered later keep working.

Fixes #1673
Pull Request #1703: fix: panic on cyclic aliases at registration instead of overflowing the stack

20 of 21 new or added lines in 1 file covered. (95.24%)

1 existing line in 1 file now uncovered.

15693 of 21589 relevant lines covered (72.69%)

93.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.75
-0.25% validator_instance.go

Coverage Regressions

Lines Coverage ∆ File
1
99.75
-0.25% validator_instance.go
Jobs
ID Job ID Ran Files Coverage
1 45656226551.1 25 Nov 2026 04:39PM UTC 37
72.69
GitHub Action Run
Source Files on build 45656226551
  • Tree
  • List 37
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1703
  • PR Base - master (#45500535864)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc