mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(scripts): use right syntax for choosing ref in "zig fetch"
This commit is contained in:
@ -65,6 +65,7 @@ end
|
|||||||
|
|
||||||
-- Run a command, die on failure with err_msg
|
-- Run a command, die on failure with err_msg
|
||||||
local function run_die(cmd, err_msg)
|
local function run_die(cmd, err_msg)
|
||||||
|
-- print(vim.inspect(table.concat(cmd, ' ')))
|
||||||
return _run(cmd, true, err_msg)
|
return _run(cmd, true, err_msg)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -163,7 +164,7 @@ local function ref(name, _ref)
|
|||||||
'zig',
|
'zig',
|
||||||
'fetch',
|
'fetch',
|
||||||
'--save=' .. symbol,
|
'--save=' .. symbol,
|
||||||
'git+https://github.com/' .. repo .. '?ref=' .. _ref,
|
'git+https://github.com/' .. repo .. '#' .. _ref,
|
||||||
})
|
})
|
||||||
run_die({ 'git', 'add', 'build.zig.zon' })
|
run_die({ 'git', 'add', 'build.zig.zon' })
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user