-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update go version in circleci workflows #28
Conversation
Go 10, 11, and 12 are being passed to the test_dynsampler job in the build_dynsampler workflow despite the new default of Go 17. The attempt to test under an old Go version is failing because the CA certs in the CircleCi-provided Go images are old and don't know about the new certificate authority cert for |
Let's see which work!
CircleCi doesn't have a cimg/go for 1.10 and 1.11's is unhappy running sudo to get updated cacerts. They're old. We should stop testing against them. Updated to matrixify like we do in libhoney-go.
Targeted Go 1.12 to work our way up to something modern.
Migrated to Go modules to get Go 1.12 through 1.17 testing happily. |
We know it's dynsampler already. Also, the workflow isn't really building anything; it only runs the tests across multiple Go versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
.circleci/config.yml
Outdated
default: "12" | ||
working_directory: /go/src/github.com/honeycombio/dynsampler-go | ||
default: *default_goversion | ||
working_directory: /home/circleci/go/src/github.com/honeycombio/dynsampler-go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think working directory is necessary. I removed it recently on another repo PR that updated the docker image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was present here and in libhoney-go. But let's find out! 🧑🔬 ⚗️ 🧪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the PR: https://github.com/honeycombio/buildevents/pull/132/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
go 1.12 | ||
|
||
require github.com/stretchr/testify v1.6.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting here for posterity: this is the version that still works with Go 1.12. testify 1.7 requires Go 1.13.
Which problem is this PR solving?
Updates go to v1.17.
Short description of the changes