diff --git a/go.mod b/go.mod index 128c4ce..0eaaa9f 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.18 require ( github.com/containrrr/shoutrrr v0.8.0 + github.com/distribution/reference v0.5.0 github.com/docker/cli v24.0.6+incompatible - github.com/docker/distribution v2.8.2+incompatible github.com/docker/docker v24.0.6+incompatible github.com/docker/go-connections v0.4.0 github.com/onsi/ginkgo v1.16.5 @@ -20,6 +20,8 @@ require ( golang.org/x/net v0.15.0 ) +require github.com/docker/distribution v2.8.3+incompatible // indirect + require ( github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect github.com/Microsoft/go-winio v0.4.17 // indirect diff --git a/go.sum b/go.sum index d681cd2..2966f48 100644 --- a/go.sum +++ b/go.sum @@ -62,10 +62,12 @@ github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ 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/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/cli v24.0.6+incompatible h1:fF+XCQCgJjjQNIMjzaSmiKJSCcfcXb3TWTcc7GAneOY= github.com/docker/cli v24.0.6+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= -github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= +github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/docker v24.0.6+incompatible h1:hceabKCtUgDqPu+qm0NgsaXf28Ljf4/pWFL7xjWWDgE= github.com/docker/docker v24.0.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.1 h1:Dq4iIfcM7cNtddhLVWe9h4QDjsi4OER3Z8voPu/I52g= diff --git a/pkg/registry/auth/auth.go b/pkg/registry/auth/auth.go index aae4df4..99b05c9 100644 --- a/pkg/registry/auth/auth.go +++ b/pkg/registry/auth/auth.go @@ -11,7 +11,7 @@ import ( "github.com/containrrr/watchtower/pkg/registry/helpers" "github.com/containrrr/watchtower/pkg/types" - ref "github.com/docker/distribution/reference" + ref "github.com/distribution/reference" "github.com/sirupsen/logrus" ) diff --git a/pkg/registry/auth/auth_test.go b/pkg/registry/auth/auth_test.go index 1dfcce4..d295310 100644 --- a/pkg/registry/auth/auth_test.go +++ b/pkg/registry/auth/auth_test.go @@ -12,7 +12,7 @@ import ( "github.com/containrrr/watchtower/pkg/registry/auth" wtTypes "github.com/containrrr/watchtower/pkg/types" - ref "github.com/docker/distribution/reference" + ref "github.com/distribution/reference" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) diff --git a/pkg/registry/helpers/helpers.go b/pkg/registry/helpers/helpers.go index 8d99f2d..35d6ca3 100644 --- a/pkg/registry/helpers/helpers.go +++ b/pkg/registry/helpers/helpers.go @@ -1,7 +1,7 @@ package helpers import ( - "github.com/docker/distribution/reference" + "github.com/distribution/reference" ) // domains for Docker Hub, the default registry diff --git a/pkg/registry/manifest/manifest.go b/pkg/registry/manifest/manifest.go index d1b18a9..c732bae 100644 --- a/pkg/registry/manifest/manifest.go +++ b/pkg/registry/manifest/manifest.go @@ -7,7 +7,7 @@ import ( "github.com/containrrr/watchtower/pkg/registry/helpers" "github.com/containrrr/watchtower/pkg/types" - ref "github.com/docker/distribution/reference" + ref "github.com/distribution/reference" "github.com/sirupsen/logrus" ) diff --git a/pkg/registry/registry.go b/pkg/registry/registry.go index 4894f04..430b401 100644 --- a/pkg/registry/registry.go +++ b/pkg/registry/registry.go @@ -3,7 +3,7 @@ package registry import ( "github.com/containrrr/watchtower/pkg/registry/helpers" watchtowerTypes "github.com/containrrr/watchtower/pkg/types" - ref "github.com/docker/distribution/reference" + ref "github.com/distribution/reference" "github.com/docker/docker/api/types" log "github.com/sirupsen/logrus" )