From f96256a46390283bc0cd129154ce71702f2c70a0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 24 Jun 2025 20:24:30 +0300 Subject: Fix fmt.Errorf non-constant format string errors in multiple packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed fmt.Errorf calls in integrationtests/fileutils.go - Fixed fmt.Errorf calls in integrationtests-old/fileutils.go - Fixed fmt.Errorf calls in internal/color/color.go - Fixed t.Errorf call in internal/mapr/logformat/default_test.go All tests now pass with Go 1.24's stricter format string requirements. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- integrationtests-old/fileutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integrationtests-old') diff --git a/integrationtests-old/fileutils.go b/integrationtests-old/fileutils.go index a1e1051..ffc26fe 100644 --- a/integrationtests-old/fileutils.go +++ b/integrationtests-old/fileutils.go @@ -81,7 +81,7 @@ func compareFiles(t *testing.T, fileA, fileB string) error { if bytes, err := exec.Command("diff", "-u", fileA, fileB).Output(); err != nil { sb.Write(bytes) } - return fmt.Errorf(sb.String()) + return fmt.Errorf("%s", sb.String()) } return nil -- cgit v1.2.3