ci: fix some github urls

This commit is contained in:
Folke Lemaitre 2024-06-25 17:48:04 +02:00
parent 8abfed457c
commit 88911547e7
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 5 additions and 4 deletions

View File

@ -68,10 +68,11 @@ function M.build()
if rockspec then
local url = rockspec.source and rockspec.source.url
-- parse github short url
if url and url:find("^%a+://github.com/") then
url = url:gsub("^%a+://github.com/", "")
if url and url:find("://github.com/") then
url = url:gsub("^.*://github.com/", "")
local parts = vim.split(url, "/")
url = parts[1] .. "/" .. parts[2]
url = url:gsub("%.git$", "")
end
if url then
rock.url = url

View File

@ -373,7 +373,7 @@ return
version = "1.5.2-1"
}, {
name = "nui.nvim",
url = "git+https://github.com/MunifTanjim/nui.nvim.git",
url = "MunifTanjim/nui.nvim",
version = "0.3.0-1"
}, {
name = "nvim-client",
@ -570,7 +570,7 @@ return
}, {
name = "rocks-config.nvim",
url = "nvim-neorocks/rocks-config.nvim",
version = "2.1.0-1"
version = "2.0.1-1"
}, {
name = "rocks-dev.nvim",
url = "nvim-neorocks/rocks-dev.nvim",