Fix make format-spelling difference on MacOS (#14165)

* Fix make format-spelling differnce on MacOS

* Update Makefile.core.mk

---------

Co-authored-by: Craig Box <craig.box@gmail.com>
This commit is contained in:
Eric Van Norman 2023-11-15 17:49:03 -06:00 committed by GitHub
parent be4221a2d9
commit 21c2dfdab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -85,9 +85,11 @@ site:
snips:
@scripts/gen_snips.sh
# Force locale, since macOS and Linux use different locales. Otherwise updates from macOS users will
# fail make gen-check with an incorrect (for the pipeline) .spelling.
format-spelling:
@echo "Sorting the .spelling file..."
@sort .spelling --ignore-case -o .spelling
@LC_ALL=C sort .spelling --ignore-case -o .spelling
@echo ".spelling file sorted."
gen: tidy-go format-go update-gateway-version snips format-spelling