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

kcl-lang / cli / 36157376644
35%
main: 35%

Build:
Build:
LAST BUILD BRANCH: chore/bump-kcl-deps-v0.13.0
DEFAULT BRANCH: main
Ran 25 Sep 2026 03:58PM UTC
Jobs 1
Files 12
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 Sep 2026 03:54PM UTC coverage: 35.273% (+0.4%) from 34.857%
36157376644

Pull #389

github

Peefy
fix(version): always emit `-{goos}-{goarch}` suffix in GetVersionString

The previous implementation only formatted the platform suffix on the
`VersionTypeLatest.String()` fallback, while the two primary branches
(`-ldflags`-injected `version` and `debug.ReadBuildInfo().Main.Version`)
returned the bare version string. As a result, `kcl version` printed
inconsistent output depending on which branch fired for a given binary
— for example "0.12.10" vs "0.12.10-darwin-arm64" — which is what
kcl-lang/cli#386 reports after a release that uses ldflags injection.

Funnel every source through `getVersion(v)` so the output is always
`{version}-{goos}-{goarch}`, and add a regression test that exercises
each of the three resolution paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #389: fix(version): always emit `-{goos}-{goarch}` suffix in GetVersionString

6 of 6 new or added lines in 1 file covered. (100.0%)

394 of 1117 relevant lines covered (35.27%)

0.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36157376644.1 25 Sep 2026 03:58PM UTC 12
35.27
GitHub Action Run
Source Files on build 36157376644
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #389
  • PR Base - main (#35614043875)
  • Delete
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