From 4503c5f1c0e27687ece7cb75798b192b782c0d72 Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Tue, 6 Feb 2024 10:51:57 -0800 Subject: [PATCH] build: workaround pre-commit issue --- make/pre-commit.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/pre-commit.mk b/make/pre-commit.mk index 410a3b42d..5fae76f69 100644 --- a/make/pre-commit.mk +++ b/make/pre-commit.mk @@ -13,6 +13,8 @@ pre-commit: ; $(info $(M) running pre-commit) ifeq ($(wildcard $(PRE_COMMIT_CONFIG_FILE)),) $(error Cannot find pre-commit config file $(PRE_COMMIT_CONFIG_FILE). Specify the config file via PRE_COMMIT_CONFIG_FILE variable) endif + # Set pip version to work around https://github.com/pypa/pip/issues/12372 + env VIRTUALENV_PIP=24.0 pre-commit install-hooks env SKIP=$(SKIP) pre-commit run -a --show-diff-on-failure --config $(PRE_COMMIT_CONFIG_FILE) git fetch origin main pre-commit run --hook-stage manual gitlint-ci