Skip to content
Snippets Groups Projects
Commit ab6fd15d authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

SL-18837: git-hooks no longer has requirements.txt?

parent d2294841
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -321,9 +321,13 @@ begin_section "coding policy check" ...@@ -321,9 +321,13 @@ begin_section "coding policy check"
# this far. Running coding policy checks on one platform *should* suffice... # this far. Running coding policy checks on one platform *should* suffice...
if [[ "$arch" == "Darwin" ]] if [[ "$arch" == "Darwin" ]]
then then
# install the git-hooks dependencies git_hooks_reqs="$git_hooks_checkout/requirements.txt"
pip install -r "$(native_path "$git_hooks_checkout/requirements.txt")" || \ if [[ -r "$(shell_path "$git_hooks_reqs")" ]]
fatal "pip install git-hooks failed" then
# install the git-hooks dependencies
pip install -r "$(native_path "$git_hooks_reqs")" || \
fatal "pip install git-hooks failed"
fi
# validate the branch we're about to build # validate the branch we're about to build
python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \ python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \
fatal "coding policy check failed" fatal "coding policy check failed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment