You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Prepare a kcl file main.k
a = 1
Set the environment variable HOME to empty.
export HOME=""
Compile the kcl file:
kcl run main.k
2. What did you expect to see? (Required)
Compile successfully
a: 1
3. What did you see instead (Required)
An panic error:
kcl run main.k
panic: failed to load config file '' for kpm.
internal bugs, failed to load working directory
could not access $KCL_PKG_PATH.
internal bugs, failed to load user home directory
$HOME is not defined
goroutine 1 [running]:
kcl-lang.io/cli/cmd/kcl/commands.NewModCmd()
/Workspace/kcl/cli/cmd/kcl/commands/mod.go:50 +0x27c
kcl-lang.io/cli/cmd/kcl/commands.NewWithName({0x103bea758, 0x3})
/Workspace/kcl/cli/cmd/kcl/commands/root.go:123 +0x214
kcl-lang.io/cli/cmd/kcl/commands.New(...)
/Workspace/kcl/cli/cmd/kcl/commands/root.go:99
main.main()
/Workspace/kcl/cli/cmd/kcl/main.go:14 +0x28
4. What is your KCL components version? (Required)
The main branch
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Prepare a kcl file
main.k
Set the environment variable
HOME
to empty.Compile the kcl file:
2. What did you expect to see? (Required)
Compile successfully
3. What did you see instead (Required)
An panic error:
4. What is your KCL components version? (Required)
The main branch
The text was updated successfully, but these errors were encountered: