From d89c5a7815f281c91fdd65be5abc67460e3ca187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ros=C5=82aniec?= Date: Sun, 24 May 2026 06:32:50 +0000 Subject: [PATCH] fix(tbtcpg/test): use constant format string in fmt.Errorf `go vet` (run by `go test`) rejects `fmt.Errorf(unmarshaled.ExpectedErr)` because the format string is not a compile-time constant. This caused the `client-integration-test` job in CI to fail with: pkg/tbtcpg/internal/test/marshaling.go:276:33: non-constant format string in call to fmt.Errorf Wrap the value in `%s` so the format string is a constant and the package builds again. --- pkg/tbtcpg/internal/test/marshaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tbtcpg/internal/test/marshaling.go b/pkg/tbtcpg/internal/test/marshaling.go index 2dd72dbaa0..5a1d172ee0 100644 --- a/pkg/tbtcpg/internal/test/marshaling.go +++ b/pkg/tbtcpg/internal/test/marshaling.go @@ -273,7 +273,7 @@ func (psts *ProposeSweepTestScenario) UnmarshalJSON(data []byte) error { // Unmarshal expected error if len(unmarshaled.ExpectedErr) > 0 { - psts.ExpectedErr = fmt.Errorf(unmarshaled.ExpectedErr) + psts.ExpectedErr = fmt.Errorf("%s", unmarshaled.ExpectedErr) } return nil