MCPcopy
hub / github.com/keploy/keploy / ReexecWithSudo

Function ReexecWithSudo

utils/reexec_windows.go:13–15  ·  view source on GitHub ↗

ReexecWithSudo is a no-op on Windows. Docker Desktop on Windows handles permissions differently and doesn't require sudo. If this is called on Windows, it means there's a logic error - we should never try to re-exec with sudo on Windows.

(logger *zap.Logger)

Source from the content-addressed store, hash-verified

11// If this is called on Windows, it means there's a logic error - we should never
12// try to re-exec with sudo on Windows.
13func ReexecWithSudo(logger *zap.Logger) {
14 logger.Debug("ReexecWithSudo called on Windows - this is a no-op")
15}
16
17// ShouldReexecWithSudo always returns false on Windows.
18// Docker Desktop on Windows handles permissions differently and doesn't require sudo.

Callers 1

startFunction · 0.92

Calls 1

DebugMethod · 0.65

Tested by

no test coverage detected