Skip to content

Non-yaml checks running on yaml files #245

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

Open
nickgw opened this issue Apr 15, 2025 · 0 comments
Open

Non-yaml checks running on yaml files #245

nickgw opened this issue Apr 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nickgw
Copy link

nickgw commented Apr 15, 2025

Describe the Bug

Checks for puppet files are also being executed on yaml files. This especially happens with yaml with anchors and aliases:

[root@08f8f7ae7287 puppet]# puppet-lint hieradata/facts/env/prod/role/unbound.yaml
ERROR: Syntax error on line 3 (check: syntax)

  zone.consul.contoso.com: &consulDNS
                                 ^

Try running `puppet parser validate <file>`

Expected Behavior

Only yaml compatible checks should run on yaml files.

Steps to Reproduce

Run puppet-lint on yaml files.

Additional Context

Looks like the issue may have been introduced here: https://github.com/puppetlabs/puppet-lint/pull/235/files

@nickgw nickgw added the bug Something isn't working label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant