mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
build: update go version to 1.16 in go.mod
Make go version latest in the repo Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
2b9f6c3598
commit
9aa3520c9d
@ -60,9 +60,9 @@ else
|
||||
fi
|
||||
|
||||
# parse the Golang version, return the digit passed as argument
|
||||
# 1.13.9 -> go_version 1 -> 1
|
||||
# 1.13.9 -> go_version 2 -> 13
|
||||
# 1.13.9 -> go_version 3 -> 9
|
||||
# 1.16.4 -> go_version 1 -> 1
|
||||
# 1.16.4 -> go_version 2 -> 16
|
||||
# 1.16.4 -> go_version 3 -> 4
|
||||
go_version() {
|
||||
go version | cut -d' ' -f3 | sed 's/^go//' | cut -d'.' -f"${1}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user