This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/solver/socketprovider_unix.go

21 lines
342 B
Go
Raw Permalink Normal View History

//go:build !windows
// +build !windows
package solver
import (
"errors"
"net"
"time"
"go.dagger.io/dagger/plancontext"
)
func dialService(service *plancontext.Service) (net.Conn, error) {
if service.Unix() == "" {
return nil, errors.New("unsupported socket type")
}
return net.DialTimeout("unix", service.Unix(), time.Second)
}