From cf64caee84b9d6b1ed476eeeda8b69bf23a9ffeb Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Wed, 15 Jan 2025 09:50:47 +0100 Subject: [PATCH] fix(ci): Exclude ansible-compat's new cache location ansible-compat 25.0.0 now stores its cache in .ansible. Ignore this location when running ansible-lint and in .gitignore. Signed-off-by: Felix Matouschek --- .github/workflows/ci.yml | 4 +++- .gitignore | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 287860a..4a3c813 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,9 @@ jobs: - name: Run ansible-lint run: | ansible-lint --version - ansible-lint -v + # Remove --exclude flag once ansible-lint was updated to ignore ansible-compat's new cache location + # See https://github.com/ansible/ansible-lint/issues/4477 + ansible-lint -v --exclude .cache .ansible working-directory: ${{ env.collection_dir }} - name: Run shellcheck diff --git a/.gitignore b/.gitignore index 0122fc0..ca00b4f 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ htmlcov/ .nox/ .coverage .coverage.* +.ansible .cache nosetests.xml coverage.xml