Skip to content
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

puppet-lint crashes with "invalid byte sequence in UTF-8 (ArgumentError)" #458

Closed
mfragkoulis opened this issue Jan 15, 2016 · 3 comments
Closed
Milestone

Comments

@mfragkoulis
Copy link

On Mac OS X 10.10.5 with Ruby 2.0.0 when running puppet-lint on puppetlabs/puppet

@rnelson0
Copy link
Collaborator

Some discussion in #459 called out a situation where a selinux policy, which matches the pattern *.pp, was caught in the lint file list. If that's the case, I wonder if it would be more appropriate to die with a helpful error message about the encoding, rather than coerce a random coding into utf-8 and try and parse whatever the result is.

@mfragkoulis
Copy link
Author

IMHO it makes sense and it would have been helpful to me in this specific situation.

@rodjek
Copy link
Owner

rodjek commented Sep 27, 2017

Closing this issue now. The specific problem (puppet-lint attempting to parse selinux policy packages) was resolved in #733 and the general solution of reading manifests as UTF-8 was resolved in #730

@rodjek rodjek closed this as completed Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants