Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Build and test last two stable Go versions (1.16 and 1.17) #216

Merged
merged 5 commits into from
Oct 21, 2021
Merged

Conversation

kmoe
Copy link
Member

@kmoe kmoe commented Sep 2, 2021

Needs #217 for main test fix.

  • Run CI build and test jobs for Go 1.16 and Go 1.17, and move to Go 1.17 for release job
  • Remove all other Go version CI jobs
  • Add version support policy to README
  • Remove old Go 1.12 and 1.14 compat code

The TFCache.find() function made use of t.Cleanup(), which was not available
until Go 1.14.
The testTempDir() function made use of t.Cleanup(), which was not available
until Go 1.14.
@kmoe kmoe marked this pull request as ready for review October 21, 2021 14:55
@kmoe kmoe requested a review from radeksimko October 21, 2021 14:58
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for diligently updating all the tests!

I do not have the most up to date CircleCI context/knowledge, but it looks 👌🏻 from what I can tell.

One minor comment aside about the cmd.String() this LGTM!

tfexec/cmdstring.go Show resolved Hide resolved

// TODO: Remove once we drop support for Go <1.15
// in favour of native t.TempDir()
func TempDir(t *testing.T) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

The cmdString() function made use of Cmd.String(), which was not available
until Go 1.13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants