-
Notifications
You must be signed in to change notification settings - Fork 56
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(*): Upgrade minimum version to Go 1.16 #916
Conversation
Thanks for your contributions as first. We have set a GSP about our release policy: https://github.com/beyondstorage/go-storage/blob/master/docs/rfcs/15-release-policy.md So upgrade to 1.17 is not suitable for us. Upgrade to 1.16 is OK though. We have a discussion about it at our forum:https://forum.beyondstorage.io/t/topic/244 Do you want to implement it?
|
BTW, it's OK to me to just add go 1.17 support in this PR. And we can discuss the upgrade to 1.16 in another one. |
@Xuanwo Hi! Sure, I can upgrade it to Go 1.16. But is it okay to drop 1.15 and start to support 1.17 in GitHub Actions? Since Go 1.15 has reached end-of-life
|
Yes, we can drop go 1.15 in github action. 😝 |
Maybe we don't need to change the Makefile if we use |
This commit also drops Go 1.15 and adds Go 1.17 to GitHub Actions workflows. Signed-off-by: Eng Zer Jun <[email protected]>
The io/ioutil package has been deprecated as of Go 1.16, see https://golang.org/doc/go1.16#ioutil. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <[email protected]>
🙈 Oops...I missed that one. I have reverted the Makefile changes. Just a side note, if we plan to use a higher Go version in go.mod and still support an older Go version in GitHub Actions in the future, then |
@Xuanwo The failing test Services Test Ftp / Integration Test (asf/mina-ftpserver) has been failing repeated and does not seem to be a flaky test. The first time it failed is at this commit 006447b (#906)
|
OK, let's merge this PR and than fix the test. |
PR merged, thanks! |
2. Removetidy
as the dependency ofbuild
target and add anothermake tidy-all
step tobuild-test.yml
. This is required otherwisemake build-all
will report an error when the current go.mod file indicates a higher Go version than the current installed version.io/ioutil
package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). This PR replaces the existingio/ioutil
functions with their new definitions inio
andos
packages.EDIT: Revert Makefile changes