Skip to content

Commit

Permalink
Ensure sort order doesn't depend on locale
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Oct 17, 2019
1 parent 0c36111 commit 9d4cef8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ lint:

tidy:
@echo "go mod tidy"
# Ensure sort order doesn't depend on locale
export LANG=C
export LC_ALL=C
go mod tidy
git diff -U --exit-code go.mod go.sum

Expand Down
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Run hack/pin-deps.sh to change pinned dependency versions.
//

module github.com/pingcap/tidb-operator

require (
Expand Down
6 changes: 6 additions & 0 deletions hack/pin-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

VERSION=1.12.5

# Explicitly opt into go modules, even though we're inside a GOPATH directory
export GO111MODULE=on
# Ensure sort order doesn't depend on locale
export LANG=C
export LC_ALL=C

go mod edit -require k8s.io/kubernetes@v$VERSION

#
Expand Down

0 comments on commit 9d4cef8

Please sign in to comment.