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
{{ message }}
Repository navigation
pre-commit failing in Github Actions within setup.cfg file #112
We are happily using pre-commit all over ros-planning repos for some time. Today @JafarAbdi and I got a failing pre-commit CI when we've added a setup.cfg file to one of our repos. The error we are getting from Github Actions is:
Error: Unable to locate executable file: pre-commit. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
I've tracked this to a one single line in my own fork here vatanaksoytezer/srdfdom#3. pre-commit CI passes before that particular line but starts to fail with the error above. For more information:
Is there any way we can run it on other branches as well? I am also happy to contribute these stuff. We (and many other ROS organizations) typically support multiple ROS distributions on different branches in our repos and run CIs against each branch.
Activity
asottile commentedon Jun 23, 2021
I'd recommend not using
install-scripts-- it's not doing what you intend it to do and breaking howpipworksnote that https://pre-commit.ci will not have this problem as it does not install using your repository so I'd recommend using that instead
vatanaksoytezer commentedon Jun 23, 2021
Follow up question: Just tried https://pre-commit.ci but I couldn't seem to run the CI on different branches other than my main branch? Am I missing something?
asottile commentedon Jun 23, 2021
it runs on pull requests and the default branch
vatanaksoytezer commentedon Jun 23, 2021
Is there any way we can run it on other branches as well? I am also happy to contribute these stuff. We (and many other ROS organizations) typically support multiple ROS distributions on different branches in our repos and run CIs against each branch.
asottile commentedon Jun 23, 2021
not currently besides having it in PRs to those branches