Skip to content

Commit bc67391

Browse files
committed
feat: prebuilt binary retry, disable progress, and docs
Related to #68
1 parent 933052b commit bc67391

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lua/blink/cmp/fuzzy/download.lua

+12-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,18 @@ function download.from_github(tag, cb)
126126
.. system_triple
127127
.. download.get_lib_extension()
128128

129-
vim.system({ 'curl', '--create-dirs', '-fLo', download.lib_path, url }, {}, function(out)
129+
vim.system({
130+
'curl',
131+
'--retry=2',
132+
'--retry-connrefused',
133+
'--fail', -- Fail on 4xx/5xx
134+
'--location', -- Follow redirects
135+
'--silent', -- Don't show progress
136+
'--show-error', -- Show errors, even though we're using --silent
137+
'--create-dirs',
138+
'--output=' .. download.lib_path,
139+
url,
140+
}, {}, function(out)
130141
if out.code ~= 0 then return cb('Failed to download pre-build binaries: ' .. out.stderr) end
131142
cb()
132143
end)

0 commit comments

Comments
 (0)