Skip to content

Commit

Permalink
chore: add mkdir cmd for init.lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Jul 27, 2023
1 parent 9708a2d commit dcff71b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kclvm_runtime/kclvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dcff71b

Please sign in to comment.