lint: Fix error appearing after the go 1.24 go.mod change

GOOS=windows /Applications/Xcode.app/Contents/Developer/usr/bin/make lint
"/Users/teuf/dev/gvisor-tap-vsock/tools/bin"/golangci-lint run
cmd/win-sshproxy/main.go:99:17: printf: non-constant format string in call to github.com/sirupsen/logrus.Errorf (govet)
		logrus.Errorf("Error saving thread id: " + err.Error())
		              ^
cmd/win-sshproxy/main.go:111:17: printf: non-constant format string in call to github.com/sirupsen/logrus.Errorf (govet)
		logrus.Errorf("Error occurred in execution group: " + err.Error())

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Christophe Fergeau
2025-09-10 10:15:20 +02:00
parent c314965fd2
commit c247b31e20

View File

@@ -96,7 +96,7 @@ func main() {
// Save thread for legacy callers which use it to post a quit
if _, err := saveThreadId(); err != nil {
logrus.Errorf("Error saving thread id: " + err.Error())
logrus.Errorf("Error saving thread id: %v", err)
}
logrus.Debug("Setting up proxies")
@@ -108,7 +108,7 @@ func main() {
// Wait for completion (cancellation) or error
if err := group.Wait(); err != nil {
logrus.Errorf("Error occurred in execution group: " + err.Error())
logrus.Errorf("Error occurred in execution group: %v", err)
return
}
}