From 9b89ba5f158f73779cd58d0bb2783dfb40b28b0e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 1 Dec 2024 13:01:51 +0100 Subject: refactor: replace all instances of vim.uv with vim.loop We still support neovim 0.9 currently, so we can't use vim.uv. Also add a check so we don't accidentally reintroduce it. --- .github/ci/run_sanitizer.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') diff --git a/.github/ci/run_sanitizer.sh b/.github/ci/run_sanitizer.sh index 90a6b01a..93049a07 100644 --- a/.github/ci/run_sanitizer.sh +++ b/.github/ci/run_sanitizer.sh @@ -22,3 +22,12 @@ if git diff --pickaxe-all -U0 -G "${SEARCH_PATTERN}" "${REF_BRANCH}" "${PR_BRANC echo 'Do not use deprecated util functions: '"${SEARCH_PATTERN}" exit 1 fi + +SEARCH_PATTERN='(vim\.uv)' + +if git diff --pickaxe-all -U0 -G "${SEARCH_PATTERN}" "${REF_BRANCH}" "${PR_BRANCH}" -- '*.lua' | grep -Ev '\.lua$' | grep -E "^\+.*${SEARCH_PATTERN}" ; then + echo + echo 'Do not use modules that are too new: '"${SEARCH_PATTERN}" + echo 'Consult README to check the minimum supported neovim version.' + exit 1 +fi -- cgit v1.2.3-70-g09d2