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

pre_commit ruby script fails puppet-lint if you are in the wrong working directory #130

Closed
oznah opened this issue Feb 17, 2015 · 3 comments
Labels
bug Something isn't working

Comments

@oznah
Copy link

oznah commented Feb 17, 2015

puppet-lint test fails with "foo::bar not in autoload module layout" error.

@oznah
Copy link
Author

oznah commented Feb 17, 2015

Adding absolute path to puppet_lint function fixed for me.

def puppet_lint(file)
       # system('puppet-lint ' + file)
       system('puppet-lint ' + File.absolute_path(file))

@oznah oznah closed this as completed Feb 17, 2015
@ghoneycutt
Copy link
Member

submitted PR #131 for this

@acidprime acidprime reopened this Feb 17, 2015
@acidprime
Copy link
Collaborator

Re-opening this as that PR was for the Rakefile, but the issue referenced is for the pre-commit script in the files directory of the module.

@acidprime acidprime added the bug Something isn't working label Feb 23, 2015
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

3 participants