mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
fix(install)!: remove gitlab codepath
Gitlab tarballs have started including the commit hash, so downstream processing fails anyway.
This commit is contained in:
parent
04ab807f8e
commit
19c729dae6
1 changed files with 1 additions and 5 deletions
|
|
@ -197,17 +197,13 @@ end
|
||||||
---@param output_dir string
|
---@param output_dir string
|
||||||
---@return string? err
|
---@return string? err
|
||||||
local function do_download(logger, url, project_name, cache_dir, revision, output_dir)
|
local function do_download(logger, url, project_name, cache_dir, revision, output_dir)
|
||||||
local is_gitlab = url:find('gitlab.com', 1, true)
|
|
||||||
|
|
||||||
local tmp = output_dir .. '-tmp'
|
local tmp = output_dir .. '-tmp'
|
||||||
|
|
||||||
rmpath(tmp)
|
rmpath(tmp)
|
||||||
a.schedule()
|
a.schedule()
|
||||||
|
|
||||||
url = url:gsub('.git$', '')
|
url = url:gsub('.git$', '')
|
||||||
local target = is_gitlab
|
local target = string.format('%s/archive/%s.tar.gz', url, revision)
|
||||||
and string.format('%s/-/archive/%s/%s-%s.tar.gz', url, revision, project_name, revision)
|
|
||||||
or string.format('%s/archive/%s.tar.gz', url, revision)
|
|
||||||
|
|
||||||
local tarball_path = fs.joinpath(cache_dir, project_name .. '.tar.gz')
|
local tarball_path = fs.joinpath(cache_dir, project_name .. '.tar.gz')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue