Removed pre-go1.17 build-tags with go fix;
go mod init
go fix -mod=readonly ./...
rm go.mod
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
239 B
Go
14 lines
239 B
Go
//go:build !windows
|
|
|
|
package commandconn
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
func createSession(cmd *exec.Cmd) {
|
|
// for supporting ssh connection helper with ProxyCommand
|
|
// https://github.com/docker/cli/issues/1707
|
|
cmd.SysProcAttr.Setsid = true
|
|
}
|