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

kcl-lang / kcl-go
26%

Build:
DEFAULT BRANCH: main
Repo Added 11 Jul 2023 12:43PM UTC
Token 4Gb0bKv8ScOdUgym2Ytr3uAavzXZhHJhI regen
Build 896 Last
Files 100
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • Peefy-patch-1
  • add-more-api-and-docs
  • add-more-api-for-kcl-result
  • add-native-parse-file-test
  • add-relative-import-in-override-file-api
  • add-template-system-module
  • add-testing-api
  • better-go-mod-import-devex
  • bump-0.11.2
  • bump-artifact-and-kpm-version
  • bump-go-and-deps
  • bump-kcl-0.5.3
  • bump-kcl-080-stable
  • bump-kcl-artifact-0.5.6
  • bump-kcl-artifact-0.7.0-alpha.2
  • bump-kcl-artifact-go
  • bump-kcl-artifact-to-0.7.0-beta.2
  • bump-kcl-go-version-to-0.7.0-beta.1
  • bump-kcl-lib-0.7.2
  • bump-kcl-lib-078
  • bump-kcl-lib-to-0.7.0-alpha.1
  • bump-kcl-to-0.6.0-alpha.1
  • bump-kcl-v0.6.0
  • bump-kcl-version-0.5
  • bump-kcl-version-to-0.5.4
  • bump-kin-openapi-deps
  • bump-kpm-version
  • bump-lib-076
  • bump-lib-080-beta
  • bump-lib-085
  • bump-lib-version
  • bump-version
  • bump_lib_with_purego0.8.3
  • bump_version_0111
  • chore-bump-086-libs
  • chore-bump-any-type
  • chore-bump-go-yaml-deps
  • chore-bump-kcl-lib-0.10.0
  • chore-bump-kcl-lib-0.10.0-alpha.1
  • chore-bump-kcl-lib-0.10.0-rc.1
  • chore-bump-kcl-lib-0.10.2
  • chore-bump-kcl-lib-0.10.4
  • chore-bump-kcl-lib-0.10.8
  • chore-bump-kcl-lib-0.12.0
  • chore-bump-kcl-lib-0.12.0-rc.1
  • chore-bump-kcl-lib-0.12.1
  • chore-bump-kcl-lib-0.12.2-with-musl
  • chore-bump-kcl-lib-087
  • chore-bump-kcl-lib-090-rc2
  • chore-bump-kcl-pkg-path
  • chore-bump-kcl-to-090
  • chore-bump-lib-0.10.0-beta.1
  • chore-bump-lib-0.10.0-beta.2
  • chore-bump-lib-0.9.0-alpha.1
  • chore-bump-lib-083
  • chore-bump-lib-and-kpm-version
  • chore-bump-lib-version-0.10.0-alpha.2
  • chore-bump-script-version-to-090
  • chore-kcl-lib-0.10.3
  • chore-more-kcl-abi-versions
  • chore-remove-env-and-use-vendor-native-lib
  • chore/release-docker-image
  • compile-only-opt-merge
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/contributor-assistant/github-action-2.3.1
  • dependabot/github_actions/contributor-assistant/github-action-2.3.2
  • dependabot/github_actions/contributor-assistant/github-action-2.4.0
  • dependabot/github_actions/github/codeql-action-3
  • dependabot/github_actions/github/codeql-action-4
  • dependabot/go_modules/github.com/BurntSushi/toml-1.3.2
  • dependabot/go_modules/github.com/BurntSushi/toml-1.4.0
  • dependabot/go_modules/github.com/cloudflare/circl-1.3.7
  • dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible
  • dependabot/go_modules/github.com/docker/docker-23.0.3incompatible
  • dependabot/go_modules/github.com/emicklei/proto-1.13.3
  • dependabot/go_modules/github.com/emicklei/proto-1.14.0
  • dependabot/go_modules/github.com/emicklei/proto-1.14.1
  • dependabot/go_modules/github.com/emicklei/proto-1.14.2
  • dependabot/go_modules/github.com/emicklei/proto-1.14.3
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.123.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.125.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.126.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.127.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.128.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.129.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.130.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.131.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.132.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.133.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.134.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.135.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.136.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.137.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.138.0
  • dependabot/go_modules/github.com/getkin/kin-openapi-0.139.0
  • dependabot/go_modules/github.com/go-git/go-git/v5-5.11.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.11.3
  • dependabot/go_modules/github.com/goccy/go-yaml-1.12.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.13.4
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.10
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.13
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.15
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.17
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.19
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.23
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.4
  • dependabot/go_modules/github.com/goccy/go-yaml-1.15.7
  • dependabot/go_modules/github.com/goccy/go-yaml-1.16.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.17.1
  • dependabot/go_modules/github.com/goccy/go-yaml-1.18.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.0
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.1
  • dependabot/go_modules/github.com/goccy/go-yaml-1.19.2
  • dependabot/go_modules/github.com/gofrs/flock-0.12.0
  • dependabot/go_modules/github.com/golang/protobuf-1.5.4
  • dependabot/go_modules/github.com/google/go-cmp-0.7.0
  • dependabot/go_modules/github.com/stretchr/testify-1.10.0
  • dependabot/go_modules/github.com/stretchr/testify-1.11.0
  • dependabot/go_modules/github.com/stretchr/testify-1.11.1
  • dependabot/go_modules/github.com/stretchr/testify-1.9.0
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.0
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.1
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.10
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.11
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.12
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.13
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.14
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.16
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.17
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.2
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.3
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.4
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.6
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.8
  • dependabot/go_modules/github.com/yuin/goldmark-1.8.2
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • dependabot/go_modules/golang.org/x/tools-0.22.0
  • dependabot/go_modules/golang.org/x/tools-0.23.0
  • dependabot/go_modules/golang.org/x/tools-0.24.0
  • dependabot/go_modules/golang.org/x/tools-0.26.0
  • dependabot/go_modules/golang.org/x/tools-0.27.0
  • dependabot/go_modules/golang.org/x/tools-0.28.0
  • dependabot/go_modules/golang.org/x/tools-0.29.0
  • dependabot/go_modules/golang.org/x/tools-0.30.0
  • dependabot/go_modules/golang.org/x/tools-0.33.0
  • dependabot/go_modules/golang.org/x/tools-0.34.0
  • dependabot/go_modules/golang.org/x/tools-0.35.0
  • dependabot/go_modules/golang.org/x/tools-0.36.0
  • dependabot/go_modules/golang.org/x/tools-0.40.0
  • dependabot/go_modules/golang.org/x/tools-0.41.0
  • dependabot/go_modules/golang.org/x/tools-0.42.0
  • dependabot/go_modules/golang.org/x/tools-0.43.0
  • dependabot/go_modules/golang.org/x/tools-0.44.0
  • dependabot/go_modules/golang.org/x/tools-0.45.0
  • dependabot/go_modules/google.golang.org/grpc-1.56.3
  • dependabot/go_modules/google.golang.org/grpc-1.61.0
  • dependabot/go_modules/google.golang.org/grpc-1.61.1
  • dependabot/go_modules/google.golang.org/grpc-1.62.0
  • dependabot/go_modules/google.golang.org/grpc-1.62.1
  • dependabot/go_modules/google.golang.org/grpc-1.63.0
  • dependabot/go_modules/google.golang.org/grpc-1.63.2
  • dependabot/go_modules/google.golang.org/grpc-1.64.0
  • dependabot/go_modules/google.golang.org/grpc-1.65.0
  • dependabot/go_modules/google.golang.org/grpc-1.66.0
  • dependabot/go_modules/google.golang.org/grpc-1.66.2
  • dependabot/go_modules/google.golang.org/grpc-1.67.0
  • dependabot/go_modules/google.golang.org/grpc-1.67.1
  • dependabot/go_modules/google.golang.org/grpc-1.68.0
  • dependabot/go_modules/google.golang.org/grpc-1.68.1
  • dependabot/go_modules/google.golang.org/grpc-1.69.0
  • dependabot/go_modules/google.golang.org/grpc-1.69.2
  • dependabot/go_modules/google.golang.org/grpc-1.69.4
  • dependabot/go_modules/google.golang.org/grpc-1.70.0
  • dependabot/go_modules/google.golang.org/grpc-1.71.0
  • dependabot/go_modules/google.golang.org/grpc-1.72.0
  • dependabot/go_modules/google.golang.org/grpc-1.72.1
  • dependabot/go_modules/google.golang.org/grpc-1.72.2
  • dependabot/go_modules/google.golang.org/grpc-1.73.0
  • dependabot/go_modules/google.golang.org/grpc-1.74.2
  • dependabot/go_modules/google.golang.org/grpc-1.75.0
  • dependabot/go_modules/google.golang.org/grpc-1.78.0
  • dependabot/go_modules/google.golang.org/grpc-1.79.1
  • dependabot/go_modules/google.golang.org/grpc-1.79.2
  • dependabot/go_modules/google.golang.org/grpc-1.79.3
  • dependabot/go_modules/google.golang.org/grpc-1.80.0
  • dependabot/go_modules/google.golang.org/grpc-1.81.0
  • dependabot/go_modules/google.golang.org/grpc-1.81.1
  • dependabot/go_modules/google.golang.org/protobuf-1.32.0
  • dependabot/go_modules/google.golang.org/protobuf-1.33.0
  • dependabot/go_modules/google.golang.org/protobuf-1.34.0
  • dependabot/go_modules/google.golang.org/protobuf-1.34.1
  • dependabot/go_modules/google.golang.org/protobuf-1.34.2
  • dependabot/go_modules/google.golang.org/protobuf-1.35.1
  • dependabot/go_modules/google.golang.org/protobuf-1.35.2
  • dependabot/go_modules/google.golang.org/protobuf-1.36.0
  • dependabot/go_modules/google.golang.org/protobuf-1.36.1
  • dependabot/go_modules/google.golang.org/protobuf-1.36.10
  • dependabot/go_modules/google.golang.org/protobuf-1.36.11
  • dependabot/go_modules/google.golang.org/protobuf-1.36.2
  • dependabot/go_modules/google.golang.org/protobuf-1.36.3
  • dependabot/go_modules/google.golang.org/protobuf-1.36.4
  • dependabot/go_modules/google.golang.org/protobuf-1.36.5
  • dependabot/go_modules/google.golang.org/protobuf-1.36.6
  • dependabot/go_modules/google.golang.org/protobuf-1.36.7
  • dependabot/go_modules/google.golang.org/protobuf-1.36.8
  • dependabot/go_modules/kcl-lang.io/kpm-0.7.0
  • dependabot/go_modules/kcl-lang.io/kpm-0.8.1
  • dependabot/go_modules/kcl-lang.io/lib-0.8.0-alpha.3
  • deprecated-old-kcl-go-commands
  • deprecated-workdir-logic
  • dev
  • dev2
  • enhance-cgo-build-tags
  • enhance-kcl-file-gen
  • enhance-kcl-import-go-struct
  • enhance/doc-example
  • enhance/doc-gen-attr-table
  • enhance/doc-help-msg
  • enhance/doc-html-escape
  • enhance/doc-refered-by
  • enhance/expose-GetSchemaTypeMapping-api
  • enhance/package-index-page
  • enhance/use-kpm-api
  • feat-add-build-flag-for-native-service
  • feat-add-log-message-in-test-report
  • feat-artifact-api
  • feat-disable-artifact-install-at-build-time
  • feat-disable-shared-lib-install-at-build-time
  • feat-doc-gen-html-escape-for-default-value
  • feat-dup-key-support-for-prototext-to-kcl
  • feat-gen-api-doc
  • feat-gen-json-style-struct-tags
  • feat-gen-kcl-config
  • feat-gen-kcl-from-go-value
  • feat-gen-kcl-from-text-proto
  • feat-gen-toml
  • feat-go-package-to-kcl
  • feat-goc-gen-for-lambda-and-schema-index-signature
  • feat-import-muti-yaml
  • feat-json-schema-gen-const-anyof-not
  • feat-kcl-081-spec
  • feat-kcl-config-gen
  • feat-kcl-go-plugin
  • feat-kcl-lib-0.12.2
  • feat-kcl-lib-090-beta
  • feat-list-dep-packages
  • feat-more-api-and-examples
  • feat-parse-file-ast
  • feat-parser-api
  • feat-proto-oneof-import-kcl
  • feat-support-more-go-value-marshal-to-kcl
  • feat-windows-plugin
  • feat/add-native-runpaths
  • feat/complex-json-schema
  • feat/doc-gen
  • feat/doc-packageDoc
  • feat/doc-types
  • feat/export-openapi
  • feat/kcl-doc
  • feature/fix-issue-260
  • feature/gengo-rename
  • fix-github-action
  • fix-import-jsonschema
  • fix-import-type-issue
  • fix-jsonschema-validation-for-optional-attr
  • fix-kcl-yaml-setting-parse-err
  • fix-nil-deref-on-oneof-ref
  • fix-override-option
  • fix-package-maps-config-in-kcl-yaml
  • fix-raw-json-result
  • fix-rpc-server-build-tag-and-tests
  • fix-runtime-init-panic
  • fix-selector-err
  • fix-single-stream
  • fix-stream-result
  • fix-system-modules
  • fix-yaml-sep
  • fix-yaml-stream-data-import
  • fix/182
  • fix/214
  • fix/allof-bugs
  • fix/cloud_init_schema
  • fix/doc-gen-validation-error
  • fix/doc-schema-doc
  • fix/docgen/markdown/pipes-in-enums
  • fix/nested-item
  • fix/sort-keys-option-order-preservation
  • fix/yaml
  • fix/yaml-lines
  • fix_fmt_toml
  • gen-kcl-config-from-toml
  • gen-openapi-schema-with-kcl-decorator
  • get-schema-from-folder-example
  • improve_test
  • json/data
  • json/doc
  • json/enhance
  • json/keywords
  • json/keywords2
  • json/validate
  • jsonschema
  • jsonschema-allof-validations
  • kcl-0.10.4-go-1.22
  • main
  • minor/add-GetSchemaTypeMapping-rest-api
  • more-plugin-examples
  • native-service-exec
  • native-service-methods
  • refactor-ast-json-unmarshal
  • refactor-cgo-usage
  • refactor-client-code
  • refactor-jsonschema-stmt-import
  • refactor-kcl-kpm-deps
  • refactor-kcl-result
  • refactor-run-setting-files
  • refactor-svc-client
  • release-084
  • rm_ci_ubuntu20
  • runtime-init-default-values
  • schema-full-ty-api
  • schema-reference
  • snakecase-fix
  • support-format-keyword
  • support-logger-opts-merge
  • sync-0.8-abi-spec
  • sync-kcl-api
  • terraform
  • test-add-more-error-cases-for-plugin
  • test-jsonschema-casting-options
  • test-list-dep-package-with-file
  • tf/object
  • update-kcl-v0.5.1
  • update/doc-render-template
  • update/support-custom-template
  • validate-api
  • yaml

26 May 2026 05:36AM UTC coverage: 26.072% (+0.01%) from 26.062%
26434388831

push

github

web-flow
fix: guard nil currentState.Local in Ref._resolveRef (#544)

NewValidationState only sets Root, not Local, so importing a JSON
schema that contains a non-local $ref crashes with a nil pointer
dereference at keywords_core.go:302. This happens for any top-level
oneOf of sibling-file refs, e.g. the per-file output produced by
the typespec json-schema emitter.

Guard the dereference so the importer falls through to its existing
unresolved-ref path (warn + treat as any), which is what the rest
of the code already expects.

Adds a regression test case (oneof_with_refs) that panics on main
without this change.

Signed-off-by: Seth Reid <contact@sethreid.co.nz>

0 of 3 new or added lines in 1 file covered. (0.0%)

4063 of 15584 relevant lines covered (26.07%)

1.79 hits per line

Relevant lines Covered
Build:
Build:
15584 RELEVANT LINES 4063 COVERED LINES
1.79 HITS PER LINE
Source Files on main
  • Tree
  • List 100
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26434388831 main fix: guard nil currentState.Local in Ref._resolveRef (#544) NewValidationState only sets Root, not Local, so importing a JSON schema that contains a non-local $ref crashes with a nil pointer dereference at keywords_core.go:302. This happens for a... push 26 May 2026 05:36AM UTC web-flow github
26.07
26433870726 fix-nil-deref-on-oneof-ref fix: guard nil currentState.Local in Ref._resolveRef NewValidationState only sets Root, not Local, so importing a JSON schema that contains a non-local $ref crashes with a nil pointer dereference at keywords_core.go:302. This happens for any top-... Pull #544 26 May 2026 05:35AM UTC sethreidnz github
26.07
26388104126 main Chore: (deps): bump github.com/getkin/kin-openapi from 0.138.0 to 0.139.0 (#543) Chore: (deps): bump github.com/getkin/kin-openapi Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.138.0 to 0.139.0. - [Release n... push 25 May 2026 07:07AM UTC web-flow github
26.06
26386680745 dependabot/go_modules/github.com/getkin/kin-openapi-0.139.0 Chore: (deps): bump github.com/getkin/kin-openapi Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.138.0 to 0.139.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.c... Pull #543 25 May 2026 06:26AM UTC web-flow github
26.06
26018710104 main Chore: (deps): bump google.golang.org/grpc from 1.81.0 to 1.81.1 (#542) Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.81.0 to 1.81.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.... push 18 May 2026 07:06AM UTC web-flow github
26.06
26017551586 dependabot/go_modules/google.golang.org/grpc-1.81.1 Chore: (deps): bump google.golang.org/grpc from 1.81.0 to 1.81.1 Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.81.0 to 1.81.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grp... Pull #542 18 May 2026 06:35AM UTC web-flow github
26.06
25652533353 main Chore: (deps): bump golang.org/x/tools from 0.44.0 to 0.45.0 (#540) Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.44.0 to 0.45.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/gola... push 11 May 2026 05:43AM UTC web-flow github
26.06
25652525056 main Chore: (deps): bump github.com/getkin/kin-openapi from 0.137.0 to 0.138.0 (#541) Chore: (deps): bump github.com/getkin/kin-openapi Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.137.0 to 0.138.0. - [Release n... push 11 May 2026 05:43AM UTC web-flow github
26.06
25652408982 dependabot/go_modules/github.com/getkin/kin-openapi-0.138.0 Chore: (deps): bump github.com/getkin/kin-openapi Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.137.0 to 0.138.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.c... Pull #541 11 May 2026 05:39AM UTC web-flow github
26.06
25652405671 dependabot/go_modules/golang.org/x/tools-0.45.0 Chore: (deps): bump golang.org/x/tools from 0.44.0 to 0.45.0 Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.44.0 to 0.45.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tool... Pull #540 11 May 2026 05:39AM UTC web-flow github
26.06
See All Builds (894)

Badge your Repo: kcl-go

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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