diff --git a/Makefile.core.mk b/Makefile.core.mk index 94c56bc9f7..9721b336da 100644 --- a/Makefile.core.mk +++ b/Makefile.core.mk @@ -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