-
Notifications
You must be signed in to change notification settings - Fork 657
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
Wildcards / globbing not working for --exclude anymore (since 6.12) #3310
Labels
Comments
@ssbarnea @ajinkyau can I provide any more info on this issue? Can you reproduce this and agree this is an issue? |
ssbarnea
added a commit
that referenced
this issue
May 4, 2023
ssbarnea
added a commit
that referenced
this issue
May 5, 2023
ssbarnea
added a commit
that referenced
this issue
May 5, 2023
ssbarnea
added a commit
that referenced
this issue
May 5, 2023
ssbarnea
added a commit
that referenced
this issue
May 5, 2023
ssbarnea
added a commit
that referenced
this issue
May 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
We use the globbing pattern
ansible-lint --exclude '**/secrets.yml
to exclude binary files (which are binary due to applied git-crypt encryption). This worked fine untilcreator-ee:v0.13.0 (ansible-lint 6.11)
and broke withcreator-ee:v0.14.0 (ansible-lint 6.12.2)
Issue Type
OS / ENVIRONMENT
ansible-lint --version
We are using the
quay.io/ansible/creator-ee:v0.16.0
container within a GitlabCI jobSTEPS TO REPRODUCE
Add that file to your group_vars
Run ansible-lint
You see a stack trace with a UnicodeDecodeError exception:
Test with exclude glob
ansible-lint --exclude '**/secrets.yml
with in versions 6.11 and with 6.12.If you give ansible-lint the full path e.g.
ansible-lint --exclude 'group_vars/all/secrets.yml
it works even with 6.12Desired Behavior
We expect the selected (wildcard/globbed) files to be excluded as they contain binary.
This is now the debug log looks like with
creator-ee:v0.13.0
:or when using a non globbed path with
creator-ee:v0.16.0
:Actual Behavior
See steps to reproduce.
The text was updated successfully, but these errors were encountered: