containers / storage

Container Storage Library
Apache License 2.0
558 stars 239 forks source link

Update to Go 1.21 #1907

Closed mtrmac closed 5 months ago

mtrmac commented 5 months ago

We are already doing that for downstream consumers, so let’s do it here as well, so that we not surprised by a dependency requiring Go 1.21 suddenly forcing an upgrade.

This is a very minimal update; the code could benefit from some of the new features, e.g. quite a few of the global sync.Once variables could be replaced by sync.OnceValue/sync.OnceValues.

Cc: @nalind @cevich

openshift-ci[bot] commented 5 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtrmac

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/containers/storage/blob/main/OWNERS)~~ [mtrmac] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
rhatdan commented 5 months ago

LGTM

rhatdan commented 5 months ago

/lgtm