refactor: pipelines now always run sequential

This commit is contained in:
Folke Lemaitre 2022-11-28 13:10:52 +01:00
parent 2abdc681fa
commit 3768256956
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 45 additions and 57 deletions

View file

@ -47,7 +47,7 @@ end
---@param opts? ManagerOpts
function M.install(opts)
M.run({
pipeline = { "git.install", { "plugin.docs", "plugin.run" } },
pipeline = { "git.install", "plugin.docs", "plugin.run" },
plugins = function(plugin)
return plugin.uri and not plugin._.installed
end,
@ -57,7 +57,7 @@ end
---@param opts? ManagerOpts
function M.update(opts)
M.run({
pipeline = { "git.update", { "plugin.docs", "plugin.run" }, "git.log" },
pipeline = { "git.update", "plugin.docs", "plugin.run", "wait", "git.log" },
plugins = function(plugin)
return plugin.uri and plugin._.installed
end,