mirror of
				https://github.com/containers/gvisor-tap-vsock.git
				synced 2025-10-31 12:06:24 +08:00 
			
		
		
		
	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:
		| @@ -96,7 +96,7 @@ func main() { | |||||||
|  |  | ||||||
| 	// Save thread for legacy callers which use it to post a quit | 	// Save thread for legacy callers which use it to post a quit | ||||||
| 	if _, err := saveThreadId(); err != nil { | 	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") | 	logrus.Debug("Setting up proxies") | ||||||
| @@ -108,7 +108,7 @@ func main() { | |||||||
|  |  | ||||||
| 	// Wait for completion (cancellation) or error | 	// Wait for completion (cancellation) or error | ||||||
| 	if err := group.Wait(); err != nil { | 	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 | 		return | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christophe Fergeau
					Christophe Fergeau