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

Update to benefit from Go 1.16 #1621

Merged
merged 3 commits into from Apr 14, 2022
Merged

Update to benefit from Go 1.16 #1621

merged 3 commits into from Apr 14, 2022

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Apr 13, 2022

After containers/storage#1176 requiring Go 1.16, Skopeo will effectively require Go 1.16 as soon as it updates to that version of c/storage; so, update as well.

This is mostly trivial updates to remove references io/ioutil, along with a few very small optimizations (ReadDir and WalkDir not calling lstat(2) on every entry).

Mostly just name changes that should not change behavior, apart
from ioutil.ReadDir -> os.ReadDir avoiding per-item lstat(2) in
one case.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... to optimize away some lstat(2) calls.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Apr 13, 2022

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg vrothberg merged commit e534472 into containers:main Apr 14, 2022
@mtrmac mtrmac deleted the go1.16 branch April 14, 2022 15:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants