New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update direct Molecule dependencies: ansible-lint>=4.0.1,<5 #1675
Conversation
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
hi, i believe travis errors are not related to this commit |
Thanks everyone, merged. |
…1675) * references ansible#1607 update requirements: ansible-lint>=4.0.1 Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * Update requirements.txt Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
…1675) * references ansible#1607 update requirements: ansible-lint>=4.0.1 Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * Update requirements.txt Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
…1675) * references ansible#1607 update requirements: ansible-lint>=4.0.1 Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * Update requirements.txt Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
…1675) * references ansible#1607 update requirements: ansible-lint>=4.0.1 Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * Update requirements.txt Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
Hi all, I came across this and I have a concern I'm hoping you can take a look at regarding upgrading the ansible-lint version. Let me preface this by saying that I am new to the project and I haven't been following along with the development changes, nor have I seen/ran the test cases that Molecule has. There may be another PR that has addressed my issue, I do not know. I have Molecule 2.19.0 installed (ie. I'm not running the latest dev version), and simply upgrading the version of ansible-lint to 4.0.1 causes the linter to not catch errors anymore. Here is how I've reproduced it: # Running on Centos 7, with Python 2.7.5
virtualenv ansible-2.7.5
source ansible-2.7.5/bin/activate
mkdir -p testrole/tasks
cd testrole
cat <<EOF > tasks/main.yml
---
- file:
path: /tmp/deleteme
state: touch
EOF
pip install ansible==2.7.5 molecule==2.19.0
ansible-lint --version
# I get 3.4.23 as expected from the pinned version
molecule init scenario -r testrole
molecule lint
# Expect to see lint error "All tasks should be named"
pip install --upgrade ansible-lint
ansible-lint --version
# I get 4.0.1
molecule lint
# See no linting errors, which is unexpected
ansible-lint .
# But running the linter directly still gives me "All tasks should be named" |
I've tried with the current latest commit in master (abc4df6) instead of 2.19.0 and yeah, |
@Rickkwa, thanks for doing some digging. There was some discussion on the IRC around EDIT: Created #1723. |
This was added in ansible#1675 and no longer seems to be necessary. Version `5` of `ansible-lint` is stable and not incompatible with `molecule`.
This was added in ansible#1675 and no longer seems to be necessary. Version `5` of `ansible-lint` is stable and not incompatible with `molecule`. Since `ansible-lint` must be installed with the `[community]` extra in version `5`, this makes version `5` the new minimum version, to ensure the `[community]` extra is not applied to version `4`.
Closes #1607
Signed-off-by: Fabrice Flore-Thebault themr0c@users.noreply.github.com
PR Type