Skip to content

Commit

Permalink
CASMPET-5266: Bump go version to 1.17.6
Browse files Browse the repository at this point in the history
The build doesn't work with go version 1.16.9. The build was failing
with

```
[2022-01-25T22:54:22.534Z] vendor/sigs.k8s.io/json/internal/golang/encoding/json/encode.go:1249:12: sf.IsExported undefined (type reflect.StructField has no field or method IsExported)
```

Looking at bugs like kubernetes-sigs/json#8
it says that go 1.16 is on its way out.

The latest 1.17 is 1.17.6, see
https://go.dev/doc/devel/release#go1.17.minor
  • Loading branch information
Brant Knudson committed Jan 26, 2022
1 parent 57f7c2e commit c893ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildPrep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ else
tar -C /usr/local -xzf go1.16.9.linux-amd64.tar.gz
fi

GO_VERSION="1.16.9"
GO_VERSION="1.17.6"
INSTALLED_GO_VERSION=$(go version | awk '{print $3}')

if [[ "go${GO_VERSION}" != $INSTALLED_GO_VERSION ]]; then
Expand Down

0 comments on commit c893ac1

Please sign in to comment.