We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 182418f + b84b1e1 commit 6204eb2Copy full SHA for 6204eb2
go/native/loader.go
@@ -12,11 +12,7 @@ import (
12
const libName = "kclvm_cli_cdylib"
13
14
func libPath() (path string, err error) {
15
- libHome := os.Getenv("KCL_LIB_HOME")
16
- if libHome == "" {
17
- return lazypath.DataHome(), nil
18
- }
19
- return libHome, nil
+ return lazypath.DataHome(), nil
20
}
21
22
func fullLibName() string {
@@ -32,6 +28,10 @@ func fullLibName() string {
32
28
func loadServiceNativeLib() (uintptr, error) {
33
29
libPath, err := libPath()
34
30
libPath = filepath.Join(libPath, "kcl")
31
+ envLibHome := os.Getenv("KCL_LIB_HOME")
+ if envLibHome != "" {
+ libPath = envLibHome
+ }
35
if err != nil {
36
return 0, err
37
0 commit comments