commit 69d04ee99fe42ca6999bd66278d0f76820f6760a
parent 9c0afc8873a8780d596c022c3dea0573399b8450
Author: bfredl <bjorn.linse@gmail.com>
Date: Mon, 12 May 2025 19:14:26 +0200
Merge pull request #33987 from bfredl/bump2
fix(scripts): use right syntax for choosing ref in "zig fetch"
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/bump_deps.lua b/scripts/bump_deps.lua
@@ -65,6 +65,7 @@ end
-- Run a command, die on failure with err_msg
local function run_die(cmd, err_msg)
+ -- print(vim.inspect(table.concat(cmd, ' ')))
return _run(cmd, true, err_msg)
end
@@ -163,7 +164,7 @@ local function ref(name, _ref)
'zig',
'fetch',
'--save=' .. symbol,
- 'git+https://github.com/' .. repo .. '?ref=' .. _ref,
+ 'git+https://github.com/' .. repo .. '#' .. _ref,
})
run_die({ 'git', 'add', 'build.zig.zon' })
end