You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my Windows dev PC, I cannot use / as path separator for the ignore_templates entries in .cfnlintrc. Using the OS-specific \ works, however it then breaks when running cfn-lint on our Ubuntu build machine.
This is different from behavior of templates section where I can use / as path separator and it works fine on both operating systems.
Expected behavior
I expect ignore_templates to accept paths with / as separator on both Windows and Linux-based OSes. The .cfnlintrc file shown below should work and correctly ignore excluded.yml file:
I took some time to look into this today. So here is what I think... when sending in a /**/ on Windows to the glob it will return the windows normalized names. However, if you have a fully hardcoded name it will just send it back. I think the best solution here is to normalize all the paths to windows based structure. That's what the PR above does.
CloudFormation Lint Version
0.77.4
What operating system are you using?
Windows
Describe the bug
On my Windows dev PC, I cannot use
/
as path separator for theignore_templates
entries in .cfnlintrc. Using the OS-specific\
works, however it then breaks when running cfn-lint on our Ubuntu build machine.This is different from behavior of
templates
section where I can use/
as path separator and it works fine on both operating systems.Expected behavior
I expect
ignore_templates
to accept paths with/
as separator on both Windows and Linux-based OSes. The .cfnlintrc file shown below should work and correctly ignoreexcluded.yml
file:Reproduction template
No template necessary, this is a config issue
The text was updated successfully, but these errors were encountered: