Fix ordering settings in verify bazel

In coreutils LC_ALL=C is required to make sorting stable across
platoforms and locales.

$ echo "a-c\nabc" | LANG=C LC_ALL=C sort
a-c
abc

$ echo "a-c\nabc" | LANG=C sort
abc
a-c
This commit is contained in:
Odin Ugedal 2019-06-29 13:33:45 +02:00
parent de8fb1c9f8
commit 65d93bbe48
No known key found for this signature in database
GPG Key ID: AFF9C8242CF7A7AF

View File

@ -33,7 +33,7 @@ popd
# Find all of the staging repos.
while IFS='' read -r repo; do staging_repos+=("${repo}"); done <\
<(cd "${KUBE_ROOT}/staging/src" && find k8s.io -mindepth 1 -maxdepth 1 -type d | LANG=C sort)
<(cd "${KUBE_ROOT}/staging/src" && find k8s.io -mindepth 1 -maxdepth 1 -type d | LC_ALL=C LANG=C sort)
# Save the staging repos into a Starlark list that can be used by Bazel rules.
(