Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

ci: bump Go version to 1.18 #167

Merged
merged 4 commits into from
Apr 28, 2022
Merged

ci: bump Go version to 1.18 #167

merged 4 commits into from
Apr 28, 2022

Conversation

mikemorris
Copy link
Contributor

@mikemorris mikemorris commented Apr 27, 2022

Changes proposed in this PR:

  • Bump GO_VERSION for CI to 1.18
  • Bump the reflect2 dependency to avoid a segfault

How I've tested this PR:

Running go test ./... in internal/k8s/builder previously failed with a segfault when running with Go 1.18 locally due to unsafe code used by the reflect2 package (an indirect dependency from Kubernetes core). With this change tests now pass locally, and should be able to pass in CI as well.

How I expect reviewers to test this PR:

  • Confirm that bumping the version in go.mod is not necessary as we aren't actually using any features like generic that require Go 1.18 yet, just fixing compatibility.

  • Did I miss anywhere this needs to be bumped, e.g. for release pipelines?

  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use imperative present tense (e.g. Add support for...)

@mikemorris mikemorris requested a review from a team April 27, 2022 14:15
@nathancoleman
Copy link
Member

Holding until after we release today

@mikemorris
Copy link
Contributor Author

mikemorris commented Apr 27, 2022

e2e tests are currently failing due to this change in Go 1.18

TLS 1.0 and 1.1 disabled by default client-side
https://tip.golang.org/doc/go1.18#tls10

Fix should just be configuring TLS min version explicitly in the test client dialer.

@nathancoleman nathancoleman merged commit 8cd8b37 into main Apr 28, 2022
@nathancoleman nathancoleman deleted the go-version/1.18 branch April 28, 2022 16:21
nickethier added a commit that referenced this pull request Apr 29, 2022
@mikemorris
Copy link
Contributor Author

For future reference, apparently this missed bumping the actual version used for binary builds, see #189

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants