Skip to content

Commit d0fa9c1

Browse files
authored
update distribution/reference import (#230)
Signed-off-by: logonoff <[email protected]>
1 parent 59a6703 commit d0fa9c1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.21
55
require (
66
github.com/devfile/api/v2 v2.3.0
77
github.com/devfile/registry-support/registry-library v0.0.0-20240521161747-89fc566cb024
8-
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2
8+
github.com/distribution/reference v0.6.0
99
github.com/fatih/color v1.14.1
1010
github.com/fsnotify/fsnotify v1.7.0
1111
github.com/go-git/go-git/v5 v5.13.0
@@ -47,7 +47,6 @@ require (
4747
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
4848
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4949
github.com/devfile/registry-support/index/generator v0.0.0-20240419194226-cca4c9a81f8d // indirect
50-
github.com/distribution/reference v0.5.0 // indirect
5150
github.com/docker/cli v25.0.1+incompatible // indirect
5251
github.com/docker/distribution v2.8.3+incompatible // indirect
5352
github.com/docker/docker v25.0.6+incompatible // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ github.com/devfile/registry-support/registry-library v0.0.0-20240521161747-89fc5
6565
github.com/devfile/registry-support/registry-library v0.0.0-20240521161747-89fc566cb024/go.mod h1:0IbIyxWGz+Mehw5kDIF5wSE/MoStF1jeRplt3TGc8oI=
6666
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 h1:aBfCb7iqHmDEIp6fBvC/hQUddQfg+3qdYjwzaiP9Hnc=
6767
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2/go.mod h1:WHNsWjnIn2V1LYOrME7e8KxSeKunYHsxEm4am0BUtcI=
68-
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
69-
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
68+
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
69+
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
7070
github.com/docker/cli v25.0.1+incompatible h1:mFpqnrS6Hsm3v1k7Wa/BO23oz0k121MTbTO1lpcGSkU=
7171
github.com/docker/cli v25.0.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
7272
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=

pkg/devfile/imageNameSelector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
2626
"github.com/devfile/library/v2/pkg/devfile/parser"
2727
"github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
28-
"github.com/distribution/distribution/v3/reference"
28+
"github.com/distribution/reference"
2929
appsv1 "k8s.io/api/apps/v1"
3030
batchv1 "k8s.io/api/batch/v1"
3131
corev1 "k8s.io/api/core/v1"

0 commit comments

Comments
 (0)