Closed dennybaa closed 6 months ago
Hello. Thanks for the feedback. Could you please show me the content of kcl.mod? I will double check it.
Yep, sure @Peefy
[package]
name = "some-test"
edition = "v0.8.0"
version = "0.0.1"
[dependencies]
k8s = { oci = "oci://ghcr.io/kcl-lang/k8s", tag = "1.28" }
victoria-metrics-operator = { oci = "oci://ghcr.io/kcl-lang/victoria-metrics-operator", tag = "0.0.1" }
And for the whole picture kcl.yaml
which is:
kcl_cli_configs:
files:
- main.k
Thank you! I will fix it and release a new version today.
Also just an idea which seems pretty much as another issue... To brush up modules import behavior. By this I mean, even if there's no dependency in kcl.mod
, the module if available in cache (~/.kcl/kpm
) is silently imported which seems not unambiguous.
Thank you too! It's a pleasure to work with KCL language.
Also just an idea which seems pretty much as another issue... To brush up modules import behavior. By this I mean, even if there's no dependency in
kcl.mod
, the module if available in cache (~/.kcl/kpm
) is silently imported which seems not unambiguous.
Thank you, I will fix it together.
Hi there, I've bumped into inability to use hosted modules from artifactshub in case if they contain dash "-" character.
1. Minimal reproduce step (Required)
Let's suppose the following directory structure:
Namely the import statement is located in the
rule.k
file which is in turn imported frommain.k
triggered bykcl.yaml
.Sample rules.k contents:
In case a module doesn't have any dashes such as
k8s
everything works smooth whereas importingvictoria_metrics_operator
doesn't work. Error message:It's odd, but if we place the same dashed import on the level with
kcl.mod
into say ita.k
file, and simply invokekcl a.k
this scenario is operable.4. What is your KCL components version? (Required)
"0.8.6"