Skip to content

Commit 3e143c6

Browse files
committed
fix(fs): dont set cloned=true if symlink already existed
1 parent 59fb050 commit 3e143c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lua/lazy/manage/task/fs.lua

-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ M.symlink = {
3535
run = function(self)
3636
local stat = vim.loop.fs_lstat(self.plugin.dir)
3737
if stat then
38-
assert(stat.type == "link")
3938
if vim.loop.fs_realpath(self.plugin.uri) == vim.loop.fs_realpath(self.plugin.dir) then
4039
self.plugin._.installed = true
41-
self.plugin._.cloned = true
4240
return
4341
else
4442
vim.loop.fs_unlink(self.plugin.dir)

0 commit comments

Comments
 (0)