Skip to content

Commit fc8aa2f

Browse files
authored
Update Go version to 1.26.9 (#3881)
Also fixed non-constant format string vet errors for Go 1.26.9 Signed-off-by: Prem Kumar Kalle <prem.kalle@broadcom.com>
1 parent a40936c commit fc8aa2f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎cf/net/request_dumper.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (p RequestDumper) displayFormData(formData url.Values) {
138138
func (p RequestDumper) DumpResponse(res *http.Response) {
139139
dumpedResponse, err := httputil.DumpResponse(res, true)
140140
if err != nil {
141-
p.printer.Printf(T("Error dumping response\n{{.Err}}\n", map[string]interface{}{"Err": err}))
141+
p.printer.Printf("%s", T("Error dumping response\n{{.Err}}\n", map[string]interface{}{"Err": err}))
142142
} else {
143143
p.printer.Printf("\n%s [%s]\n%s\n", terminal.HeaderColor(T("RESPONSE:")), time.Now().Format(time.RFC3339), trace.Sanitize(string(dumpedResponse)))
144144
}

‎cf/trace/logger_provider.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewLogger(writer io.Writer, verbose bool, boolsOrPaths ...string) Printer {
3030
if err == nil {
3131
printers = append(printers, NewWriterPrinter(file, false))
3232
} else {
33-
stdoutLogger.Printf(T("CF_TRACE ERROR CREATING LOG FILE {{.Path}}:\n{{.Err}}",
33+
stdoutLogger.Print(T("CF_TRACE ERROR CREATING LOG FILE {{.Path}}:\n{{.Err}}",
3434
map[string]interface{}{"Path": path, "Err": err}))
3535

3636
LoggingToStdout = true

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module code.cloudfoundry.org/cli/v9
22

3-
go 1.26.7
3+
go 1.26.9
44

55
require (
66
code.cloudfoundry.org/bytefmt v0.93.0

0 commit comments

Comments
 (0)