Skip to content

Commit

Permalink
chore(deps): bump github.com/docker/cli from 27.5.1+incompatible to 2…
Browse files Browse the repository at this point in the history
…8.0.1+incompatible (#3218)

* chore(deps): bump github.com/docker/cli

Bumps [github.com/docker/cli](https://github.com/docker/cli) from 27.5.1+incompatible to 28.0.1+incompatible.
- [Commits](docker/cli@v27.5.1...v28.0.1)

---
updated-dependencies:
- dependency-name: github.com/docker/cli
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove deprecated types

* chore: update unit tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Qiao Han <qiao@supabase.io>
  • Loading branch information
dependabot[bot] and sweatybridge authored Mar 3, 2025
1 parent ef7ed65 commit 0ec16b8
Show file tree
Hide file tree
Showing 18 changed files with 144 additions and 131 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ require (
github.com/charmbracelet/glamour v0.7.0
github.com/charmbracelet/lipgloss v0.12.1
github.com/containers/common v0.62.0
github.com/docker/cli v27.5.1+incompatible
github.com/docker/docker v27.5.1+incompatible
github.com/docker/cli v28.0.1+incompatible
github.com/docker/docker v28.0.1+incompatible
github.com/docker/go-connections v0.5.0
github.com/docker/go-units v0.5.0
github.com/ecies/go/v2 v2.0.10
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxK
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/dnephin/pflag v1.0.7 h1:oxONGlWxhmUct0YzKTgrpQv9AUA1wtPBn7zuSjJqptk=
github.com/dnephin/pflag v1.0.7/go.mod h1:uxE91IoWURlOiTUIA8Mq5ZZkAv3dPUfZNaT80Zm7OQE=
github.com/docker/cli v27.5.1+incompatible h1:JB9cieUT9YNiMITtIsguaN55PLOHhBSz3LKVc6cqWaY=
github.com/docker/cli v27.5.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/cli v28.0.1+incompatible h1:g0h5NQNda3/CxIsaZfH4Tyf6vpxFth7PYl3hgCPOKzs=
github.com/docker/cli v28.0.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/distribution v2.7.1+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 v27.5.1+incompatible h1:4PYU5dnBYqRQi0294d1FBECqT9ECWeQAIfE8q4YnPY8=
github.com/docker/docker v27.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/docker v28.0.1+incompatible h1:FCHjSRdXhNRFjlHMTv4jUNlIBbTeRjrWfeFuJp7jpo0=
github.com/docker/docker v28.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
Expand Down
6 changes: 3 additions & 3 deletions internal/db/branch/create/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"testing"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/h2non/gock"
"github.com/spf13/afero"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -60,7 +60,7 @@ func TestBranchCreation(t *testing.T) {
// Run test
err := createBranch(context.Background(), "test-branch")
// Validate api
assert.ErrorContains(t, err, "request returned Service Unavailable for API route and version")
assert.ErrorContains(t, err, "request returned 503 Service Unavailable for API route and version")
assert.Empty(t, apitest.ListUnmatchedRequests())
})

Expand All @@ -71,7 +71,7 @@ func TestBranchCreation(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Post("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/exec").
Reply(http.StatusCreated).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Run test
err := createBranch(context.Background(), "test-branch")
// Validate api
Expand Down
14 changes: 7 additions & 7 deletions internal/db/branch/switch_/switch__test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/h2non/gock"
"github.com/jackc/pgerrcode"
"github.com/spf13/afero"
Expand Down Expand Up @@ -34,7 +34,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
gock.New(utils.Docker.DaemonHost()).
Post("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusServiceUnavailable)
Expand Down Expand Up @@ -99,7 +99,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Run test
err := Run(context.Background(), "postgres", fsys)
// Check error
Expand All @@ -117,7 +117,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Run test
err := Run(context.Background(), "main", fsys)
// Check error
Expand All @@ -135,7 +135,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Setup target branch
branch := "main"
branchPath := filepath.Join(filepath.Dir(utils.CurrBranchPath), branch)
Expand All @@ -159,7 +159,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Setup target branch
branch := "target"
branchPath := filepath.Join(filepath.Dir(utils.CurrBranchPath), branch)
Expand All @@ -183,7 +183,7 @@ func TestSwitchCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Setup target branch
branch := "main"
branchPath := filepath.Join(filepath.Dir(utils.CurrBranchPath), branch)
Expand Down
23 changes: 12 additions & 11 deletions internal/db/diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"time"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/h2non/gock"
"github.com/jackc/pgconn"
"github.com/jackc/pgerrcode"
Expand Down Expand Up @@ -51,10 +52,10 @@ func TestRun(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/test-shadow-db/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
apitest.MockDockerStart(utils.Docker, utils.GetRegistryImageUrl(utils.Config.Realtime.Image), "test-shadow-realtime")
Expand Down Expand Up @@ -218,8 +219,8 @@ func TestDiffDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/test-shadow-db/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: false,
Status: "exited",
},
Expand Down Expand Up @@ -248,10 +249,10 @@ func TestDiffDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/test-shadow-db/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
gock.New(utils.Docker.DaemonHost()).
Expand Down Expand Up @@ -285,10 +286,10 @@ create schema public`)
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/test-shadow-db/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
gock.New(utils.Docker.DaemonHost()).
Expand Down
2 changes: 1 addition & 1 deletion internal/db/dump/dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestPullCommand(t *testing.T) {
// Run test
err := Run(context.Background(), "", dbConfig, nil, nil, false, false, false, false, false, fsys)
// Check error
assert.ErrorContains(t, err, "request returned Service Unavailable for API route and version")
assert.ErrorContains(t, err, "request returned 503 Service Unavailable for API route and version")
assert.Empty(t, apitest.ListUnmatchedRequests())
})

Expand Down
4 changes: 2 additions & 2 deletions internal/db/lint/lint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"testing"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/h2non/gock"
"github.com/jackc/pgconn"
"github.com/jackc/pgerrcode"
Expand Down Expand Up @@ -38,7 +38,7 @@ func TestLintCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Setup db response
expected := Result{
Function: "22751",
Expand Down
33 changes: 17 additions & 16 deletions internal/db/reset/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/h2non/gock"
"github.com/jackc/pgconn"
"github.com/jackc/pgerrcode"
Expand Down Expand Up @@ -50,7 +51,7 @@ func TestResetCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId).
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
gock.New(utils.Docker.DaemonHost()).
Delete("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId).
Reply(http.StatusOK)
Expand All @@ -61,10 +62,10 @@ func TestResetCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
// Setup mock postgres
Expand All @@ -84,10 +85,10 @@ func TestResetCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.StorageId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
gock.New(utils.Config.Api.ExternalUrl).
Expand Down Expand Up @@ -147,7 +148,7 @@ func TestResetCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId).
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
gock.New(utils.Docker.DaemonHost()).
Delete("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId).
ReplyError(errors.New("network error"))
Expand Down Expand Up @@ -298,10 +299,10 @@ func TestRestartDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
// Restarts services
Expand Down Expand Up @@ -333,10 +334,10 @@ func TestRestartDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
// Restarts services
Expand Down Expand Up @@ -389,8 +390,8 @@ func TestRestartDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/test-reset/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: false,
Status: "exited",
},
Expand Down
25 changes: 13 additions & 12 deletions internal/db/start/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/volume"
"github.com/h2non/gock"
"github.com/spf13/afero"
Expand Down Expand Up @@ -71,10 +72,10 @@ func TestStartDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
apitest.MockDockerStart(utils.Docker, utils.GetRegistryImageUrl(utils.Config.Realtime.Image), "test-realtime")
Expand Down Expand Up @@ -117,10 +118,10 @@ func TestStartDatabase(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})
// Run test
Expand All @@ -147,11 +148,11 @@ func TestStartDatabase(t *testing.T) {
ReplyError(errors.New("network error"))
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/images/" + utils.GetRegistryImageUrl(utils.Config.Db.Image) + "/json").
Reply(http.StatusInternalServerError)
Reply(http.StatusServiceUnavailable)
// Run test
err := StartDatabase(context.Background(), "", fsys, io.Discard)
// Check error
assert.ErrorContains(t, err, "request returned Internal Server Error for API route and version")
assert.ErrorContains(t, err, "request returned 503 Service Unavailable for API route and version")
assert.Empty(t, apitest.ListUnmatchedRequests())
})
}
Expand Down Expand Up @@ -194,7 +195,7 @@ func TestStartCommand(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/").
Reply(http.StatusOK).
JSON(types.ContainerJSON{})
JSON(container.InspectResponse{})
// Run test
err := Run(context.Background(), "", fsys)
// Check error
Expand Down Expand Up @@ -333,10 +334,10 @@ func TestStartDatabaseWithCustomSettings(t *testing.T) {
gock.New(utils.Docker.DaemonHost()).
Get("/v" + utils.Docker.ClientVersion() + "/containers/" + utils.DbId + "/json").
Reply(http.StatusOK).
JSON(types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{
State: &types.ContainerState{
JSON(container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{
State: &container.State{
Running: true,
Health: &types.Health{Status: types.Healthy},
Health: &container.Health{Status: types.Healthy},
},
}})

Expand Down
Loading

0 comments on commit 0ec16b8

Please # to comment.