commit 647d3dc45449f86d212ead4e8ab07b55cd20d20e
parent c39d18ee939cba5f905416fcc97661b1836f4de4
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sun, 18 Jan 2026 16:30:02 +0100
build(deps): bump luv to 1.51.0-2
Diffstat:
5 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/build.zig.zon b/build.zig.zon
@@ -15,8 +15,8 @@
.lazy = true,
},
.luv = .{
- .url = "git+https://github.com/luvit/luv?ref=1.51.0-1#4c9fbc6cf6f3338bb0e0426710cf885ee557b540",
- .hash = "N-V-__8AAMlNDwCY07jUoMiq3iORXdZy0uFWKiHsy8MaDBJA",
+ .url = "git+https://github.com/luvit/luv?ref=1.51.0-2#79f6934306367e700050de9614eab9ac01bd4d6f",
+ .hash = "N-V-__8AAI1cDwA49t_OUdHwO2-BQ8TYt3kBMnnSSicx5T-B",
.lazy = true,
},
.lua_compat53 = .{
diff --git a/cmake.deps/deps.txt b/cmake.deps/deps.txt
@@ -10,8 +10,8 @@ LUA_SHA256 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
UNIBILIUM_URL https://github.com/neovim/unibilium/archive/v2.1.2.tar.gz
UNIBILIUM_SHA256 370ecb07fbbc20d91d1b350c55f1c806b06bf86797e164081ccc977fc9b3af7a
-LUV_URL https://github.com/luvit/luv/archive/1.51.0-1.tar.gz
-LUV_SHA256 d4a11178ae8e16ba5886799ea91905dd9b0b479c75aebd67866d37373e41526f
+LUV_URL https://github.com/luvit/luv/archive/1.51.0-2.tar.gz
+LUV_SHA256 d70cf20b16ab05ceaa3bb448f3e1b3ef63a5949e34184255c52a3e92efcd39b4
LPEG_URL https://github.com/neovim/deps/raw/d495ee6f79e7962a53ad79670cb92488abe0b9b4/opt/lpeg-1.1.0.tar.gz
LPEG_SHA256 4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a
diff --git a/runtime/doc/luvref.txt b/runtime/doc/luvref.txt
@@ -1416,7 +1416,8 @@ uv.spawn({path}, {options}, {on_exit}) *uv.spawn()*
available to the child process only if the child processes
uses the MSVCRT runtime.)
- `options.env` - Set environment variables for the new
- process.
+ process. Each entry should be a string in the form of
+ `NAME=VALUE`.
- `options.cwd` - Set the current working directory for the
sub-process.
- `options.uid` - Set the child process' user id.
@@ -1450,7 +1451,8 @@ uv.spawn({path}, {options}, {on_exit}) *uv.spawn()*
When the child process exits, `on_exit` is called with an exit
code and signal.
- Returns: `uv_process_t userdata`, `integer`
+ Returns: `uv_process_t userdata` or `nil`, `integer` or
+ `string`, `uv.error_name` or `nil`
uv.process_kill({process}, {signame}) *uv.process_kill()*
@@ -4206,7 +4208,7 @@ uv.hrtime() *uv.hrtime()*
clock drift. The primary use is for measuring time between
intervals.
- Returns: `number`
+ Returns: `integer`
uv.clock_gettime({clock_id}) *uv.clock_gettime()*
@@ -4403,11 +4405,11 @@ uv.os_get_passwd() *uv.os_get_passwd()*
Returns password file information.
- Returns: `table`
+ Returns: `table` or `fail`
- `username` : `string`
- - `uid` : `integer`
- - `gid` : `integer`
- - `shell` : `string`
+ - `uid` : `integer?` (`nil` on Windows)
+ - `gid` : `integer?` (`nil` on Windows)
+ - `shell` : `string?`` (`nil` on Windows)
- `homedir` : `string`
uv.os_getpid() *uv.os_getpid()*
diff --git a/runtime/lua/uv/_meta.lua b/runtime/lua/uv/_meta.lua
@@ -1469,8 +1469,9 @@ function uv.disable_stdio_inheritance() end
--- @param path string
--- @param options uv.spawn.options
--- @param on_exit fun(code: integer, signal: integer)
---- @return uv.uv_process_t handle
---- @return integer pid
+--- @return uv.uv_process_t? handle
+--- @return integer|string pid_or_err
+--- @return uv.error_name? err_name
function uv.spawn(path, options, on_exit) end
--- Sends the specified signal to the given process handle. Check the documentation
diff --git a/runtime/lua/vim/_core/system.lua b/runtime/lua/vim/_core/system.lua
@@ -306,7 +306,7 @@ local is_win = vim.fn.has('win32') == 1
--- @param opts uv.spawn.options
--- @param on_exit fun(code: integer, signal: integer)
--- @param on_error fun()
---- @return uv.uv_process_t, integer
+--- @return uv.uv_process_t?, integer?
local function spawn(cmd, opts, on_exit, on_error)
if is_win then
local cmd1 = vim.fn.exepath(cmd)