aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/managers/std.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-06-28 19:26:23 +0200
committerGitHub <noreply@github.com>2023-06-28 19:26:23 +0200
commit758ac5b35e823eee74a90f855b2a66afc51ec92d (patch)
tree100dc05b4b2e337960167cf5f8c9a94b79420f59 /lua/mason-core/installer/managers/std.lua
parentchore(ci): add nvim v0.9.1 to test matrix (#1378) (diff)
downloadmason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.gz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.bz2
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.lz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.xz
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.tar.zst
mason-758ac5b35e823eee74a90f855b2a66afc51ec92d.zip
feat(installer): write more installation output to stdout (#1376)
This should give better insights into the installation progress.
Diffstat (limited to 'lua/mason-core/installer/managers/std.lua')
-rw-r--r--lua/mason-core/installer/managers/std.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/mason-core/installer/managers/std.lua b/lua/mason-core/installer/managers/std.lua
index 6112b317..d08de888 100644
--- a/lua/mason-core/installer/managers/std.lua
+++ b/lua/mason-core/installer/managers/std.lua
@@ -94,7 +94,7 @@ end
function M.download_file(url, out_file)
log.fmt_debug("std: downloading file %s", url, out_file)
local ctx = installer.context()
- ctx.stdio_sink.stdout(("Downloading file %q...\n"):format(url))
+ ctx.stdio_sink.stdout(("Downloading file %q…\n"):format(url))
return fetch(url, {
out_file = path.concat { ctx.cwd:get(), out_file },
}):map_err(function(err)
@@ -230,6 +230,8 @@ local unpack_by_filename = _.cond {
---@nodiscard
function M.unpack(rel_path)
log.fmt_debug("std: unpack %s", rel_path)
+ local ctx = installer.context()
+ ctx.stdio_sink.stdout((("Unpacking %q…\n"):format(rel_path)))
return unpack_by_filename(rel_path)
end
@@ -241,6 +243,7 @@ function M.clone(git_url, opts)
opts = opts or {}
log.fmt_debug("std: clone %s %s", git_url, opts)
local ctx = installer.context()
+ ctx.stdio_sink.stdout((("Cloning git repository %q…\n"):format(git_url)))
return Result.try(function(try)
try(ctx.spawn.git {
"clone",