Update golangci-lint to v2.6.2

This commit is contained in:
Ciprian Hacman
2026-02-08 10:37:20 +02:00
parent b2096f7022
commit 92f2c2c4bc
15 changed files with 13 additions and 15 deletions
+3 -2
View File
@@ -19,18 +19,19 @@ limitations under the License.
package util
import (
"context"
"fmt"
"os/exec"
"syscall"
)
// Exec creates a new process with the specified arguments.
func Exec(name string, arg ...string) *exec.Cmd {
func Exec(ctx context.Context, name string, arg ...string) *exec.Cmd {
// create a process group
sysProcAttr := &syscall.SysProcAttr{
Setpgid: true,
}
cmd := exec.Command(name, arg...)
cmd := exec.CommandContext(ctx, name, arg...)
cmd.SysProcAttr = sysProcAttr
return cmd
}