Skip to content

Commit 0e1e812

Browse files
committed
WIP: replace uses of stringid
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 1db9c05 commit 0e1e812

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/compose/bridge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/distribution/reference"
2525
"github.com/docker/cli/cli/command"
26-
"github.com/docker/docker/pkg/stringid"
26+
stringid "github.com/docker/cli/cli/command/formatter"
2727
"github.com/docker/go-units"
2828
"github.com/moby/moby/api/types/image"
2929
"github.com/spf13/cobra"

cmd/compose/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
"github.com/containerd/platforms"
2929
"github.com/docker/cli/cli/command"
30-
"github.com/docker/docker/pkg/stringid"
30+
stringid "github.com/docker/cli/cli/command/formatter"
3131
"github.com/docker/go-units"
3232
"github.com/spf13/cobra"
3333

cmd/formatter/container.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424

2525
"github.com/docker/cli/cli/command/formatter"
2626
"github.com/docker/compose/v2/pkg/api"
27-
"github.com/docker/docker/pkg/stringid"
2827
"github.com/docker/go-units"
2928
"github.com/moby/moby/api/types/container"
3029
)
@@ -137,7 +136,7 @@ func (c *ContainerContext) MarshalJSON() ([]byte, error) {
137136
// option being set, the full or truncated ID is returned.
138137
func (c *ContainerContext) ID() string {
139138
if c.trunc {
140-
return stringid.TruncateID(c.c.ID)
139+
return formatter.TruncateID(c.c.ID)
141140
}
142141
return c.c.ID
143142
}

0 commit comments

Comments
 (0)