containerd / continuity

A transport-agnostic, filesystem metadata manifest system
https://containerd.io
Apache License 2.0
145 stars 67 forks source link

cmd/continuity: switch to google.golang.org/protobuf/proto #260

Closed thaJeztah closed 1 month ago

thaJeztah commented 1 month ago

The github.com/golang/protobuf/proto module is deprecated, and the main module already switched to google.golang.org/protobuf/proto in commit 74a016961cad4d635aeb6d4efb1bcc2268700d7a. This patch updates the cmd/continuity module to use the new module as well.

Before this patch:

$ cd cmd/continuity
$ go install
$ continuity build ./continuityfs > manifest.pb
$ continuity dump ./manifest.pb
resource: <
  path: "/fuse.go"
  uid: 501
  gid: 20
  mode: 420
  size: 7464
  digest: "sha256:3d86240dcc3ea8ec7ae85d6c4e0bf0be1385b5d1e38564dcec72a69b51fcf919"
>
resource: <
  path: "/provider.go"
  uid: 501
  gid: 20
  mode: 420
  size: 1728
  digest: "sha256:8e3da0fd4a8d5e454ff027d4948d4b116ddaeb5ccdd0e10af806a2ecf2599710"
>

With this patch:

$ cd cmd/continuity
$ go install
$ continuity build ./continuityfs > manifest.pb
$ continuity dump ./manifest.pb
resource:  {
  path:  "/fuse.go"
  uid:  501
  gid:  20
  mode:  420
  size:  7464
  digest:  "sha256:3d86240dcc3ea8ec7ae85d6c4e0bf0be1385b5d1e38564dcec72a69b51fcf919"
}
resource:  {
  path:  "/provider.go"
  uid:  501
  gid:  20
  mode:  420
  size:  1728
  digest:  "sha256:8e3da0fd4a8d5e454ff027d4948d4b116ddaeb5ccdd0e10af806a2ecf2599710"
}