From 88911547e705579ddff57d4b7e5a77a8557a2459 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 25 Jun 2024 17:48:04 +0200 Subject: [PATCH] ci: fix some github urls --- lua/lazy/build.lua | 5 +++-- lua/lazy/community/rocks.lua | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/lazy/build.lua b/lua/lazy/build.lua index 83993aa..c30c809 100644 --- a/lua/lazy/build.lua +++ b/lua/lazy/build.lua @@ -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 diff --git a/lua/lazy/community/rocks.lua b/lua/lazy/community/rocks.lua index a16b088..30dc305 100644 --- a/lua/lazy/community/rocks.lua +++ b/lua/lazy/community/rocks.lua @@ -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",