From 511383f67dd7b788d3bee1bc0f0b5677450b2b58 Mon Sep 17 00:00:00 2001 From: Aerex Date: Fri, 12 Jun 2026 11:01:06 -0500 Subject: [PATCH 1/3] chore: fixed non-constant format string in Printf call --- bluemix/http/transport.go | 4 ++-- bluemix/trace/trace.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bluemix/http/transport.go b/bluemix/http/transport.go index 48917f29..15226d2c 100644 --- a/bluemix/http/transport.go +++ b/bluemix/http/transport.go @@ -55,7 +55,7 @@ func (r *TraceLoggingTransport) dumpRequest(req *http.Request, start time.Time) dumpedRequest, err := httputil.DumpRequest(req, shouldDisplayBody) if err != nil { - trace.Logger.Printf(T("An error occurred while dumping request:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()})) + trace.Logger.Print(T("An error occurred while dumping request:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()})) return } @@ -76,7 +76,7 @@ func (r *TraceLoggingTransport) dumpResponse(res *http.Response, start time.Time dumpedResponse, err := httputil.DumpResponse(res, shouldDisplayBody) if err != nil { - trace.Logger.Printf(T("An error occurred while dumping response:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()})) + trace.Logger.Print(T("An error occurred while dumping response:\n{{.Error}}\n", map[string]interface{}{"Error": err.Error()})) return } diff --git a/bluemix/trace/trace.go b/bluemix/trace/trace.go index 951f7eac..9efc7d10 100644 --- a/bluemix/trace/trace.go +++ b/bluemix/trace/trace.go @@ -87,7 +87,7 @@ func NewFileLogger(path string) PrinterCloser { file, err := os.OpenFile(filepath.Clean(path), os.O_CREATE|os.O_RDWR|os.O_APPEND, 0600) if err != nil { logger := NewStdLogger() - logger.Printf(T("An error occurred when creating log file '{{.Path}}':\n{{.Error}}\n\n", map[string]interface{}{"Path": path, "Error": err.Error()})) + logger.Print(T("An error occurred when creating log file '{{.Path}}':\n{{.Error}}\n\n", map[string]interface{}{"Path": path, "Error": err.Error()})) return logger } return newLoggerImpl(file, "", 0) From 65495e0755962331875a23c410c0570184522abd Mon Sep 17 00:00:00 2001 From: Aerex Date: Fri, 12 Jun 2026 11:04:27 -0500 Subject: [PATCH 2/3] build: added GitHub actions for push and pull request events --- .github/workflows/ci.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..fba00c77 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.26.4' + - name: Display Go version + run: go version + - name: Build Dependencies + run: go mod tidy && go mod vendor + - name: Run Tests + run: go test -v -count=1 ./... From 7939d1c8346da27620b8a834aaadfd360244d485 Mon Sep 17 00:00:00 2001 From: Aerex Date: Mon, 15 Jun 2026 15:39:09 -0500 Subject: [PATCH 3/3] build: retrieve go version from go mod --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fba00c77..897283c7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: '1.26.4' + go-version-file: 'go.mod' - name: Display Go version run: go version - name: Build Dependencies