aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/installer/context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-core/installer/context.lua')
-rw-r--r--lua/mason-core/installer/context.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/installer/context.lua b/lua/mason-core/installer/context.lua
index d5c5583b..8a1e3678 100644
--- a/lua/mason-core/installer/context.lua
+++ b/lua/mason-core/installer/context.lua
@@ -269,7 +269,7 @@ function InstallContext:write_pyvenv_exec_wrapper(new_executable_rel_path, modul
local module_exists, module_err = pcall(function()
local result =
self.spawn.python { "-c", ("import %s"):format(module), with_paths = { pip3.venv_path(self.cwd:get()) } }
- if self.spawn.strict_mode then
+ if not self.spawn.strict_mode then
result:get_or_throw()
end
end)