Hello @Peefy , I continue to enjoy my learning of KCL)
Yet met another minor bug in import, which you might be aware of... If issue with importing modules has been resolved, I'm successfully able to import artifathub modules with dashes in name. Local packages seem to misbehave.
1. Minimal reproduce step (Required)
tree
.
├── a-b.k
├── a.k
├── kcl.mod
└── kcl.mod.lock
a.k:
# It actually could be import nested.a_b (in case file is nested/a-b.k)
import .a_b
output = a_b.hello
kcl.mod:
[package]
name = "iaas-alerting"
edition = "v0.8.0"
version = "0.0.1"
[dependencies]
victoria-metrics-operator = { oci = "oci://ghcr.io/kcl-lang/victoria-metrics-operator", tag = "0.0.1" }
k8s = { oci = "oci://ghcr.io/kcl-lang/k8s", tag = "1.28" }
4. What is your KCL components version? (Required)
0.8.7
Thank you and have a great day @Peefy !