From a67fd5e4c5ec9d93110c92aac44bf16056389199 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 10 Jan 2022 13:53:01 +0200 Subject: [PATCH] Fix rich version for ansible-lint Ansible-lint prior to v5.3.1 has issue with reach version >=11.0.0. In order to cherry-pick fix to stable branches we fix rich version. We can't use requirements as rich is neither in blacklist nor in global-requirements, so must be handled independently This should be reverted with ansible-lint version bump. Change-Id: Idb42c1ebd138fdfeaa4e87e383e3bac0e1fdedf8 --- scripts/gate-check-commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index 83689c0511..993ce6116d 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -116,7 +116,8 @@ if [[ "${ACTION}" == "varstest" ]]; then elif [[ "${ACTION}" == "linters" ]]; then pushd "${OSA_CLONE_DIR}" # Install linter tools - ${PIP_COMMAND} install --isolated ${PIP_OPTS} -r ${OSA_CLONE_DIR}/test-requirements.txt + # TODO(noonedeadpunk): Drop rich with ansible-lint bump, bug closed with https://github.com/ansible-community/ansible-lint/pull/1797 + ${PIP_COMMAND} install --isolated ${PIP_OPTS} -r ${OSA_CLONE_DIR}/test-requirements.txt 'rich>=9.5.1,<11.0.0' # Disable Ansible color output export ANSIBLE_NOCOLOR=1 # Create ansible logging directory