Skip to content

Commit 8ad648b

Browse files
committed
hack/make.ps1: remove the .0 suffix from go version
We would like to use a version with .0 suffix (like 1.11.0) in Dockerfile, so that once a .1 version is out (like 1.11.1) we won't accidentally switch to it. Unfortunately it's not possible to use .0 suffix currently as it breaks the check in make.ps1. This patch fixes that. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 32a2331 commit 8ad648b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/make.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Function Check-InContainer() {
130130
# outside of a container where it may be out of date with master.
131131
Function Verify-GoVersion() {
132132
Try {
133-
$goVersionDockerfile=(Select-String -Path ".\Dockerfile" -Pattern "^FROM golang:").ToString().Split(" ")[1].SubString(7)
133+
$goVersionDockerfile=(Select-String -Path ".\Dockerfile" -Pattern "^FROM golang:").ToString().Split(" ")[1].SubString(7) -replace '\.0$',''
134134
$goVersionInstalled=(go version).ToString().Split(" ")[2].SubString(2)
135135
}
136136
Catch [Exception] {

0 commit comments

Comments
 (0)