From 9ed41dd7999b0d4d92f5e82c58e3a2cea5c3b13c Mon Sep 17 00:00:00 2001 From: Daniel Raper Date: Fri, 26 Jun 2026 10:21:04 +0100 Subject: [PATCH] chore: upgrade to Go 1.26.4 Signed-off-by: Daniel Raper --- .github/workflows/go.yml | 2 +- go.mod | 2 +- pkg/fswatcher/fswatcher_test.go | 2 +- pkg/i18n/errors_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 710bab29..1b3ef829 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.23" + go-version: "1.26.4" - name: Build and Test run: make diff --git a/go.mod b/go.mod index 539fc9b0..aa5dd545 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hyperledger-firefly/common -go 1.23.0 +go 1.26.4 require ( github.com/DATA-DOG/go-sqlmock v1.5.2 diff --git a/pkg/fswatcher/fswatcher_test.go b/pkg/fswatcher/fswatcher_test.go index 919ae245..2d500cf1 100644 --- a/pkg/fswatcher/fswatcher_test.go +++ b/pkg/fswatcher/fswatcher_test.go @@ -34,7 +34,7 @@ func TestFileReconcilerE2E(t *testing.T) { logrus.SetLevel(logrus.DebugLevel) tmpDir := t.TempDir() - filePath := fmt.Sprintf(fmt.Sprintf("%s/test.yaml", tmpDir)) + filePath := fmt.Sprintf("%s/test.yaml", tmpDir) // Create the file os.WriteFile(fmt.Sprintf("%s/test.yaml", tmpDir), []byte(`{"ut_conf": "one"}`), 0664) diff --git a/pkg/i18n/errors_test.go b/pkg/i18n/errors_test.go index 46f40ef9..2afca60b 100644 --- a/pkg/i18n/errors_test.go +++ b/pkg/i18n/errors_test.go @@ -47,7 +47,7 @@ func TestWrapError(t *testing.T) { assert.Equal(t, 500, interface{}(err).(FFError).HTTPStatus()) assert.Equal(t, MsgConfigFailed, interface{}(err).(FFError).MessageKey()) stackString := interface{}(err).(FFError).StackTrace() - fmt.Printf(stackString) + fmt.Print(stackString) assert.NotEmpty(t, stackString) }