From 829221a97720a6a1d7735cf6589b14178c044861 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 03:48:16 +0000 Subject: [PATCH 1/2] Update Go version to 1.24.3 This commit updates the Go version used in go.mod and the GitHub Actions workflow to 1.24.3, the latest stable version. --- .github/workflows/go.yml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3e9a76d..e0c71c1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.24.3 - name: Build run: go build -v ./... diff --git a/go.mod b/go.mod index 59ba01f..8e950db 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ernesto27/dcli -go 1.20 +go 1.24.3 require ( github.com/charmbracelet/bubbles v0.16.1 From 9dbbcf08296d9effa45469465c5c92526f73fa36 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 03:56:09 +0000 Subject: [PATCH 2/2] Fix: Update container list test data I updated the test data in TestGetContainerRows within models/container_list_test.go to correctly expect 7 fields, including the recently added 'Size' field. This resolves test failures caused by a mismatch between the expected and actual number of columns in the container list view. --- models/container_list_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/container_list_test.go b/models/container_list_test.go index 2578e92..152d1ca 100644 --- a/models/container_list_test.go +++ b/models/container_list_test.go @@ -38,7 +38,7 @@ func TestGetContainerRows(t *testing.T) { }, query: "", }, - want: []table.Row{{"1234567890", "test", "test", "", "", "\033[32m\u2191\033[0m " + running}, {"12345678902", "test2", "test2", "", "", "\033[31m\u2193\033[0m " + exited}}, + want: []table.Row{{"1234567890", "test", "test", "", "", "", "\033[32m\u2191\033[0m " + running}, {"12345678902", "test2", "test2", "", "", "", "\033[31m\u2193\033[0m " + exited}}, }, { name: "should get filtered results when search by name", @@ -59,7 +59,7 @@ func TestGetContainerRows(t *testing.T) { }, query: "nginx", }, - want: []table.Row{{"1234567890", "nginx", "test", "", "", "\033[32m\u2191\033[0m " + running}}, + want: []table.Row{{"1234567890", "nginx", "test", "", "", "", "\033[32m\u2191\033[0m " + running}}, }, { name: "should get filtered results when search by image", @@ -80,7 +80,7 @@ func TestGetContainerRows(t *testing.T) { }, query: "mysq", }, - want: []table.Row{{"1234567890", "test", "mysql", "", "", "\033[32m\u2191\033[0m " + running}}, + want: []table.Row{{"1234567890", "test", "mysql", "", "", "", "\033[32m\u2191\033[0m " + running}}, }, }