Skip to content

KCL vet command doesn't work on schemas which import other KCL Packages #1877

@anshuishere

Description

@anshuishere

Bug Report

1. Minimal reproduce step

# Create a KCL Schema which depends on other KCL Package

import microserviceA.schema as msA
import micorserviceB.schema as msB

Schema TopLevel:
    microserviceA: msA.schema
    microserviceB. msB.schema


Where microservices are any kcl pages you include as dependencies

# Do a KCL validation

kcl vet config.yaml top-level-schema.k --forat yaml

It will fail because KCL vet will not make KCL pull the required deps or even resolve it from local cache in .kpm

2. What did you expect to see?

kcl vet works because I can do kcl run and it executes everything.

3. What did you see instead

kcl vet fails

4. What is your KCL components version?

0.10.10-linux-amd64

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions