Skip to content

Conversation

@konstruktoid
Copy link
Contributor

Add python_version support.
https://github.com/konstruktoid/ansible-role-docker-rootless/actions/runs/18915730561/job/53998459546#logs

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.14.0/x64/bin/ansible-lint", line 3, in <module>
    from ansiblelint.__main__ import _run_cli_entrypoint
  File "/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/ansiblelint/__main__.py", line 36, in <module>
    from ansible_compat.prerun import get_cache_dir
  File "/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/ansible_compat/prerun.py", line 22, in <module>
    raise RuntimeError(msg)
RuntimeError: Python 3.14 requires ansible-core version >= 2.20.0, and we found 2.19.3.
Error: Process completed with exit code 1.

Signed-off-by: Thomas Sjögren <[email protected]>
@github-actions
Copy link

Label error. Requires exactly 1 of: breaking, build, chore, ci, docs, feat, fix, perf, refactor, style, test. Found: . Follow https://www.conventionalcommits.org to get auto-labeling to work correctly.

@konstruktoid
Copy link
Contributor Author

Closes #4830

@jtonl
Copy link

jtonl commented Oct 30, 2025

Thanks for this @konstruktoid, though it gave me a good chuckle why it wasn't in the codebase before.

Dylancyclone added a commit to Dylancyclone/ansible-homelab-orchestration that referenced this pull request Oct 31, 2025
…hon version

The latest version of ansible-nas uses Python 3.14, which requires at least ansible-core version 2.20, which isn't out yet.
To avoid constantly failing tests, we manually install Python 3.12

This commit should be reverted once:
- ansible-core 2.20 comes out
- This PR gets merged, allowing us to specify the python version: ansible/ansible-lint#4829

ansible/ansible-lint#4830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants