fix(install)!: remove gitlab codepath

Gitlab tarballs have started including the commit hash, so downstream
processing fails anyway.
This commit is contained in:
Christian Clason
2026-01-29 16:14:17 +01:00
committed by Christian Clason
parent 04ab807f8e
commit 19c729dae6

View File

@@ -197,17 +197,13 @@ end
---@param output_dir string
---@return string? err
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'
rmpath(tmp)
a.schedule()
url = url:gsub('.git$', '')
local target = is_gitlab
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 target = string.format('%s/archive/%s.tar.gz', url, revision)
local tarball_path = fs.joinpath(cache_dir, project_name .. '.tar.gz')