Skip to content

Commit ba2a520

Browse files
authored
Merge pull request #4547 from thaJeztah/swap_reference
migrate reference github.com/distribution/reference
2 parents d6040fb + f13b786 commit ba2a520

60 files changed

Lines changed: 1530 additions & 54 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cli/command/container/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"regexp"
99

1010
"github.com/containerd/containerd/platforms"
11+
"github.com/distribution/reference"
1112
"github.com/docker/cli/cli"
1213
"github.com/docker/cli/cli/command"
1314
"github.com/docker/cli/cli/command/completion"
1415
"github.com/docker/cli/cli/command/image"
1516
"github.com/docker/cli/cli/streams"
1617
"github.com/docker/cli/opts"
17-
"github.com/docker/distribution/reference"
1818
"github.com/docker/docker/api/types"
1919
"github.com/docker/docker/api/types/container"
2020
"github.com/docker/docker/api/types/versions"

cli/command/formatter/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"time"
99

10-
"github.com/docker/distribution/reference"
10+
"github.com/distribution/reference"
1111
"github.com/docker/docker/api/types"
1212
"github.com/docker/docker/pkg/stringid"
1313
"github.com/docker/go-units"

cli/command/formatter/disk_usage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"text/template"
99

10-
"github.com/docker/distribution/reference"
10+
"github.com/distribution/reference"
1111
"github.com/docker/docker/api/types"
1212
"github.com/docker/docker/api/types/volume"
1313
units "github.com/docker/go-units"

cli/command/formatter/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/docker/distribution/reference"
7+
"github.com/distribution/reference"
88
"github.com/docker/docker/api/types"
99
"github.com/docker/docker/pkg/stringid"
1010
units "github.com/docker/go-units"

cli/command/image/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
"runtime"
1515
"strings"
1616

17+
"github.com/distribution/reference"
1718
"github.com/docker/cli/cli"
1819
"github.com/docker/cli/cli/command"
1920
"github.com/docker/cli/cli/command/image/build"
2021
"github.com/docker/cli/opts"
21-
"github.com/docker/distribution/reference"
2222
"github.com/docker/docker/api"
2323
"github.com/docker/docker/api/types"
2424
"github.com/docker/docker/api/types/container"

cli/command/image/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"fmt"
66
"strings"
77

8+
"github.com/distribution/reference"
89
"github.com/docker/cli/cli"
910
"github.com/docker/cli/cli/command"
1011
"github.com/docker/cli/cli/command/completion"
1112
"github.com/docker/cli/cli/trust"
12-
"github.com/docker/distribution/reference"
1313
"github.com/pkg/errors"
1414
"github.com/spf13/cobra"
1515
)

cli/command/image/pull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestNewPullCommandErrors(t *testing.T) {
2727
},
2828
{
2929
name: "invalid-name",
30-
expectedError: "invalid reference format: repository name must be lowercase",
30+
expectedError: "invalid reference format: repository name (library/UPPERCASE_REPO) must be lowercase",
3131
args: []string{"UPPERCASE_REPO"},
3232
},
3333
{

cli/command/image/push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"fmt"
66
"io"
77

8+
"github.com/distribution/reference"
89
"github.com/docker/cli/cli"
910
"github.com/docker/cli/cli/command"
1011
"github.com/docker/cli/cli/command/completion"
1112
"github.com/docker/cli/cli/streams"
12-
"github.com/docker/distribution/reference"
1313
"github.com/docker/docker/api/types"
1414
registrytypes "github.com/docker/docker/api/types/registry"
1515
"github.com/docker/docker/pkg/jsonmessage"

cli/command/image/push_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestNewPushCommandErrors(t *testing.T) {
2626
{
2727
name: "invalid-name",
2828
args: []string{"UPPERCASE_REPO"},
29-
expectedError: "invalid reference format: repository name must be lowercase",
29+
expectedError: "invalid reference format: repository name (library/UPPERCASE_REPO) must be lowercase",
3030
},
3131
{
3232
name: "push-failed",

cli/command/image/trust.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"io"
99
"sort"
1010

11+
"github.com/distribution/reference"
1112
"github.com/docker/cli/cli/command"
1213
"github.com/docker/cli/cli/streams"
1314
"github.com/docker/cli/cli/trust"
14-
"github.com/docker/distribution/reference"
1515
"github.com/docker/docker/api/types"
1616
registrytypes "github.com/docker/docker/api/types/registry"
1717
"github.com/docker/docker/pkg/jsonmessage"

0 commit comments

Comments
 (0)