Skip to content

Commit 5b684c6

Browse files
Improve the message in check_precommit.sh for go mod licenses case (#381)
# Summary If we (MCK) started consuming a new go mod deps and because of that we would need to regenerate (`update_licenses.sh`) the `LICENSE-THIRD-PARTY` file for the main project as well as `kubectl-mongodb` plugin. If we forget doing that, the CI would fail with below error ``` We have files that differ after running pre-commit, please run the pre-commit locally ``` and running `pre-commit` doesn't really update the licenses file, to do that, we will have to run `make precommit-with-licenses`. And that's why this PR updates above message. ## Proof of Work NA
1 parent 0da8924 commit 5b684c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/evergreen/check_precommit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ "${initial_index_state}" != "${final_index_state}" ]; then
2323
echo "Final index state:"
2424
echo "${final_index_state}"
2525

26-
echo "We have files that differ after running pre-commit, please run the pre-commit locally"
26+
echo "We have files that differ after running pre-commit, please run make precommit-with-licenses locally"
2727
echo "Full diff: "
2828
git diff --cached --diff-filter=AM
2929
echo "The following files differ: "

0 commit comments

Comments
 (0)