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

Lefthook doesn't seem to search the path #249

Closed
josephtole opened this issue Dec 13, 2021 · 2 comments
Closed

Lefthook doesn't seem to search the path #249

josephtole opened this issue Dec 13, 2021 · 2 comments

Comments

@josephtole
Copy link

I am trying to use ansible-lint for linting which is installed in .venv/bin. .venv/bin is part of the path.

$ which lefthook 
/home/jtole/go/bin/lefthook

$ lefthook run pre-commit
Lefthook v0.7.7
RUNNING HOOKS GROUP: pre-commit

  EXECUTE > ansible-lint
 sh: 1: ansible_lint: not found


SUMMARY: (done in 0.01 seconds)
🥊  ansible-lint

$ ansible-lint --version          
ansible-lint 5.3.0 using ansible 2.12.0

$ which ansible-lint
[[ PROJECT_PATH ]]/.venv/bin/ansible-lint
@Envek
Copy link
Member

Envek commented Dec 27, 2021

 EXECUTE > ansible-lint
sh: 1: ansible_lint: not found

Looks like you have a typo: underscore instead of dash: which ansible-lint but ansible_lint: not found.

But it can be related to using GUI tools, that have problems with $PATH. See #178 for example (especially #178 (comment))

@mrexox
Copy link
Member

mrexox commented Oct 4, 2023

This issue be solved via rc option. Probably a tweak to PATH should be applied.

@mrexox mrexox closed this as completed Oct 4, 2023
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