Skip to content

Commit

Permalink
fix: fix test case
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Apr 25, 2024
1 parent e4fae24 commit 722ba4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,11 @@ func (c *KpmClient) Download(dep *pkg.Dependency, homePath, localPath string) (*
return nil, err
}
dep.FromKclPkg(dpkg)
dep.LocalFullPath = localPath + dep.Version
err = os.Rename(localPath, dep.LocalFullPath)
if err != nil {
return nil, err
}
// Creating symbolic links in a global cache is not an optimal solution.
// This allows kclvm to locate the package by default.
// This feature is unstable and will be removed soon.
Expand Down

0 comments on commit 722ba4c

Please sign in to comment.