mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Make all useage of sort deterministic
Lots of places used sort (or sort -u) but didn't set LC_ALL=C. This means it could be slightly different on different people's systems. Make it deterministic.
This commit is contained in:
@@ -61,7 +61,7 @@ mkdir -p $(dirname "${CACHE}")
|
||||
if $("${NEED_FIND}"); then
|
||||
kfind -type f -name \*.go \
|
||||
| xargs -n1 dirname \
|
||||
| sort -u \
|
||||
| LC_ALL=C sort -u \
|
||||
| sed 's|^./||' \
|
||||
> "${CACHE}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user