Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kcl run error: failed to compile the KCL source code #166

Open
Jamel-jun opened this issue Nov 12, 2024 · 4 comments
Open

kcl run error: failed to compile the KCL source code #166

Jamel-jun opened this issue Nov 12, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Jamel-jun
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

My application is compiled and deployed into k8s correctly

3. What did you see instead (Required)

kcl controller pod appear error logs

{"level":"error","ts":"2024-11-11T08:24:25.638Z","msg":"failed to compile the KCL source code","controller":"kclrun","controllerGroup":"krm.kcl.dev.fluxcd","controllerKind":"KCLRun","KCLRun":{"name":"kcl-git-controller","namespace":"infa"},"namespace":"infa","name":"kcl-git-controller","reconcileID":"f8b9a463-2974-454a-8450-fba476f14319","error":"failed to compile the kcl package\nfailed to hash the kcl package 'oam' in ''.\nlstat : no such file or directory\n\n"}
{"level":"error","ts":"2024-11-11T08:24:25.639Z","msg":"Reconciler error","controller":"kclrun","controllerGroup":"krm.kcl.dev.fluxcd","controllerKind":"KCLRun","KCLRun":{"name":"kcl-git-controller","namespace":"infa"},"namespace":"infa","name":"kcl-git-controller","reconcileID":"f8b9a463-2974-454a-8450-fba476f14319","error":"failed to compile the kcl package\nfailed to hash the kcl package 'oam' in ''.\nlstat : no such file or directory\n\n"}

image

4. What is your KCL components version? (Required)

pod image: ghcr.io/kcl-lang/flux-kcl-controller:v0.1.0

@Peefy
Copy link
Contributor

Peefy commented Nov 12, 2024

Hello @Jamel-jun
Have you try the latest image? ghcr.io/kcl-lang/flux-kcl-controller:v0.7.0

cc @zong-zhe

@Jamel-jun
Copy link
Author

你好@Jamel-jun 您想浏览最新的图片吗?ghcr.io/kcl-lang/flux-kcl-controller:v0.7.0

抄送@zong-zhe

Error occurred:
image
image

@Peefy Peefy added the bug Something isn't working label Nov 12, 2024
@sigunused
Copy link

I'm seeing this with all images after v0.1.1, including v0.7.0:

kcl-controller flag redefined: log-encoding
panic: kcl-controller flag redefined: log-encoding

goroutine 1 [running]:
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc00069e000, 0xc0004ec6e0)
    /go/pkg/mod/github.com/spf13/[email protected]/flag.go:848 +0x5fc
github.com/spf13/pflag.(*FlagSet).VarPF(0xc00069e000, {0x2af5ee8, 0xc000795bc0}, {0x2625b4d, 0xc}, {0x0, 0x0}, {0x26938ac, 0x30})
    /go/pkg/mod/github.com/spf13/[email protected]/flag.go:831 +0x105
github.com/spf13/pflag.(*FlagSet).VarP(...)
    /go/pkg/mod/github.com/spf13/[email protected]/flag.go:837
github.com/spf13/pflag.(*FlagSet).StringVar(...)
    /go/pkg/mod/github.com/spf13/[email protected]/string.go:37
github.com/fluxcd/pkg/runtime/logger.(*Options).BindFlags(0xc000795bc0, 0xc00069e000)
    /go/pkg/mod/github.com/fluxcd/pkg/[email protected]/logger/logger.go:84 +0x75
main.main()
    /src/cmd/main.go:99 +0x3ed

@Peefy
Copy link
Contributor

Peefy commented Nov 16, 2024

Thank you! We will fix it later. cc @zong-zhe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants