Skip to content

Commit

Permalink
Remove deprecation warings
Browse files Browse the repository at this point in the history
Switch to `github.com/distribution/reference`.
  • Loading branch information
afritzler committed Oct 5, 2023
1 parent af6f4f4 commit d4fbcbe
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/onmetal/onmetal-image/docker"

"github.com/distribution/distribution/reference"
"github.com/distribution/reference"

"github.com/onmetal/onmetal-image/oci/remote"

Expand Down
2 changes: 1 addition & 1 deletion cmd/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

ocispec "github.com/opencontainers/image-spec/specs-go/v1"

"github.com/distribution/distribution/reference"
"github.com/distribution/reference"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

ocispec "github.com/opencontainers/image-spec/specs-go/v1"

"github.com/distribution/distribution/reference"
"github.com/distribution/reference"
dockerauth "oras.land/oras-go/pkg/auth/docker"
)

Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/containerd/containerd v1.7.6
github.com/distribution/distribution v2.8.3+incompatible
github.com/distribution/reference v0.5.0
github.com/go-logr/logr v1.2.4
github.com/go-logr/zapr v1.2.4
github.com/onsi/ginkgo/v2 v2.12.1
Expand All @@ -22,7 +22,6 @@ require (
github.com/Microsoft/hcsshim v0.11.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/docker/cli v23.0.3+incompatible // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/docker v23.0.3+incompatible // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/distribution/distribution v2.8.3+incompatible h1:RlpEXBLq/WPXYvBYMDAmBX/SnhD67qwtvW/DzKc8pAo=
github.com/distribution/distribution v2.8.3+incompatible/go.mod h1:EgLm2NgWtdKgzF9NpMzUKgzmR7AMmb0VQi2B+ZzDRjc=
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 h1:aBfCb7iqHmDEIp6fBvC/hQUddQfg+3qdYjwzaiP9Hnc=
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
Expand Down
2 changes: 1 addition & 1 deletion oci/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/onmetal/onmetal-image/oci/image"

"github.com/distribution/distribution/reference"
"github.com/distribution/reference"
"github.com/onmetal/onmetal-image/oci/layout"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
Expand Down

0 comments on commit d4fbcbe

Please sign in to comment.