diff --git a/pkg/kclvm_runtime/kclvm.go b/pkg/kclvm_runtime/kclvm.go index efa7bcc4..af83408c 100644 --- a/pkg/kclvm_runtime/kclvm.go +++ b/pkg/kclvm_runtime/kclvm.go @@ -32,6 +32,10 @@ func init() { func installKclArtifact() { // Get the install lib path. path := path.LibPath() + err := os.MkdirAll(path, 0777) + if err != nil { + logger.GetLogger().Warningf("install kclvm failed: %s", err.Error()) + } // Acquire a file lock for process synchronization lockPath := filepath.Join(path, "init.lock") fileLock := flock.New(lockPath)