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)
| 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. |
| 13 | func 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. |