From 5efb8bd06841f91f97c90e16de85e96d57e9c862 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 27 Nov 2023 13:25:41 +1100 Subject: [PATCH] ci: use vim-colortemplate tarball rather than git clone (#347) * ci: add vim-colortemplate to .gitignore * ci: download vim-colortemplate rather than clone --- .gitignore | 2 +- Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 75bcfb1..df26625 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .lua .luarocks -vim-colortemplate +/vim-colortemplate/ diff --git a/Makefile b/Makefile index 0c586ff..5f3344b 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VIM_COLORTEMPLATE_VERSION = 2.2.3 + all: colors style-check lint colors: vim-colortemplate @@ -12,7 +14,8 @@ colors-check: colors git diff --exit-code lua/nvim-web-devicons/icons-light.lua vim-colortemplate: - git clone --depth 1 https://github.com/lifepillar/vim-colortemplate.git vim-colortemplate + mkdir -p vim-colortemplate + curl -L https://github.com/lifepillar/vim-colortemplate/archive/refs/tags/v$(VIM_COLORTEMPLATE_VERSION).tar.gz | tar zx --directory vim-colortemplate --strip-components=1 style-check: stylua . --check @@ -23,4 +26,7 @@ style-fix: lint: luacheck lua scripts +clean: + rm -rf vim-colortemplate + .PHONY: all colors style-check style-fix lint