mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 17:20:29 +00:00
Update go.mod and vendor
This commit is contained in:
23
vendor/github.com/moby/buildkit/source/git/gitsource_windows.go
generated
vendored
23
vendor/github.com/moby/buildkit/source/git/gitsource_windows.go
generated
vendored
@@ -1,23 +0,0 @@
|
||||
// +build windows
|
||||
|
||||
package git
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func runProcessGroup(ctx context.Context, cmd *exec.Cmd) error {
|
||||
if err := cmd.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
waitDone := make(chan struct{})
|
||||
go func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
cmd.Process.Kill()
|
||||
case <-waitDone:
|
||||
}
|
||||
}()
|
||||
return cmd.Wait()
|
||||
}
|
Reference in New Issue
Block a user