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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/spf13/pflag-1.1.0
DEFAULT BRANCH: main
Ran 28 Oct 2026 09:42AM 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

28 Oct 2026 09:39AM UTC coverage: 35.263% (+0.2%) from 35.085%
40665949181

Pull #398

github

Peefy
fix(mod): parse registry-qualified OCI references in mod pull/add

A positional argument that names the registry or the namespace, such as
"ghcr.io/kcl-lang/helloworld:0.1.0" or "kcl-lang/helloworld:0.1.0",
was parsed as a package spec whose name was then joined with the
default repository. The reference "ghcr.io/kcl-lang/helloworld" was
therefore resolved as "kcl-lang/ghcr.io/kcl-lang/helloworld" and
"kcl-lang/helloworld" as "kcl-lang/kcl-lang/helloworld" - both
repositories that do not exist.

Such a reference cannot be expressed by a package spec, so it is now
parsed as an OCI source. The namespace replaces the default repository
instead of being prefixed to it, the same way the host-less --oci form
treats a bare repository path, and the registry stays unresolved when
the reference does not name one so that it is read from KPM_REG at
runtime. A bare package name keeps its previous meaning and is still
written to kcl.mod as a plain dependency.

Additionally, the --tag flag no longer clears a tag that came from the
reference itself, which also fixes the tag of an "oci://" URL being
lost when it is given in the query string.

Signed-off-by: Peefy <xpf6677@163.com>
Pull Request #398: fix(mod): parse registry-qualified OCI references in mod pull/add

396 of 1123 relevant lines covered (35.26%)

0.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40665949181.1 28 Oct 2026 09:42AM UTC 12
35.26
GitHub Action Run
Source Files on build 40665949181
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #398
  • PR Base - main (#40654420732)
  • 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