fix(runner): sync package specs after installing and before building

This commit is contained in:
Folke Lemaitre 2024-06-24 19:38:33 +02:00
parent 656d3d1f5b
commit 105d4805ad
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 58 additions and 24 deletions

View file

@ -83,7 +83,13 @@ function M.install(opts)
"git.clone",
{ "git.checkout", lockfile = opts.lockfile },
"plugin.docs",
"wait",
{
"wait",
sync = function()
require("lazy.pkg").update()
Plugin.load()
end,
},
"plugin.build",
},
plugins = function(plugin)
@ -92,7 +98,6 @@ function M.install(opts)
}, opts):wait(function()
require("lazy.manage.lock").update()
require("lazy.help").update()
require("lazy.pkg").update()
end)
end
@ -107,7 +112,13 @@ function M.update(opts)
"git.status",
{ "git.checkout", lockfile = opts.lockfile },
"plugin.docs",
"wait",
{
"wait",
sync = function()
require("lazy.pkg").update()
Plugin.load()
end,
},
"plugin.build",
{ "git.log", updated = true },
},
@ -117,7 +128,6 @@ function M.update(opts)
}, opts):wait(function()
require("lazy.manage.lock").update()
require("lazy.help").update()
require("lazy.pkg").update()
end)
end
--