1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/cmd/cnbBuildAttr.go
Hilmar Falkenberg 09cd271415
fixes go build on windows (#4858)
* fixes `go build` on windows
2024-03-07 13:37:49 +01:00

18 lines
273 B
Go

//go:build !windows
package cmd
import (
"syscall"
)
func getSysProcAttr(uid int, gid int) *syscall.SysProcAttr {
return &syscall.SysProcAttr{
Credential: &syscall.Credential{
Uid: uint32(uid),
Gid: uint32(gid),
NoSetGroups: true,
},
}
}