mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
bump buildah to latest
Also includes a small change to make us of https://github.com/containers/buildah/pull/5039 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
7
vendor/github.com/containers/buildah/pkg/sshagent/sshagent.go
generated
vendored
7
vendor/github.com/containers/buildah/pkg/sshagent/sshagent.go
generated
vendored
@@ -201,8 +201,13 @@ func NewSource(paths []string) (*Source, error) {
|
||||
if len(paths) == 0 {
|
||||
socket = os.Getenv("SSH_AUTH_SOCK")
|
||||
if socket == "" {
|
||||
return nil, errors.New("$SSH_AUTH_SOCK not set")
|
||||
return nil, errors.New("SSH_AUTH_SOCK not set in environment")
|
||||
}
|
||||
absSocket, err := filepath.Abs(socket)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("evaluating SSH_AUTH_SOCK in environment: %w", err)
|
||||
}
|
||||
socket = absSocket
|
||||
}
|
||||
for _, p := range paths {
|
||||
if socket != "" {
|
||||
|
||||
Reference in New Issue
Block a user