• Kubernetes Submit Queue's avatar
    Merge pull request #58207 from strigazi/fix-cmp-ver · a990b04d
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 58207, 58258). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Use sort -V to compare golang versions
    
    Change hack/lib/golang.sh to compare golang
    version properly with "sort -s -t. -k 1,1 -k 2,2n -k 3,3n",
    which sorts key by key and not as strings.
    
    
    
    **What this PR does / why we need it**:
    trivial fix: hack/lib/golang.sh compare versions like strings, 1.10 is greater than 1.9 as a version but not as a string. Use "sort -s -t. -k 1,1 -k 2,2n -k 3,3n" to compare properly. 
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    a990b04d
Name
Last commit
Last update
..
.gitattributes Loading commit data...
BUILD Loading commit data...
etcd.sh Loading commit data...
golang.sh Loading commit data...
init.sh Loading commit data...
logging.sh Loading commit data...
protoc.sh Loading commit data...
swagger.sh Loading commit data...
test.sh Loading commit data...
util.sh Loading commit data...
version.sh Loading commit data...