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

Upgrade golang to 1.17 and replace iouitl with io and os #297

Merged
merged 1 commit into from
Jan 30, 2022
Merged

Upgrade golang to 1.17 and replace iouitl with io and os #297

merged 1 commit into from
Jan 30, 2022

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Oct 28, 2021

bolt is still using golang 1.12, which is really too old. etcd has already upgraded golang to 1.17, so it'd better to upgrade golang to 1.17 for bolt as well.

The ioutil package has already been deprecated in golang 1.16, please see go1.16#ioutil. So we also need to replace all the ioutil with os and io.

In golang 1.17, the go command understands //go:build lines and prefer them over // +build lines. Please see go1.17#go-command. So added the "//go:build" lines as well in this PR.

@ahrtr
Copy link
Member Author

ahrtr commented Oct 28, 2021

There is a similar PR etcd/pull/13447 for etcd as well.

@xiang90 xiang90 merged commit d5db64b into etcd-io:master Jan 30, 2022
ydcool added a commit to ydcool/bolt that referenced this pull request Feb 9, 2022
@ahrtr ahrtr added this to the 1.3.7 milestone Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants