mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
Update vendor or containers/buildah
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/buildah/run_freebsd.go
generated
vendored
10
vendor/github.com/containers/buildah/run_freebsd.go
generated
vendored
@@ -90,7 +90,7 @@ func (b *Builder) Run(command []string, options RunOptions) error {
|
||||
|
||||
gp, err := generate.New("freebsd")
|
||||
if err != nil {
|
||||
return fmt.Errorf("error generating new 'freebsd' runtime spec: %w", err)
|
||||
return fmt.Errorf("generating new 'freebsd' runtime spec: %w", err)
|
||||
}
|
||||
g := &gp
|
||||
|
||||
@@ -123,7 +123,7 @@ func (b *Builder) Run(command []string, options RunOptions) error {
|
||||
}
|
||||
mountPoint, err := b.Mount(b.MountLabel)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error mounting container %q: %w", b.ContainerID, err)
|
||||
return fmt.Errorf("mounting container %q: %w", b.ContainerID, err)
|
||||
}
|
||||
defer func() {
|
||||
if err := b.Unmount(); err != nil {
|
||||
@@ -216,7 +216,7 @@ func (b *Builder) Run(command []string, options RunOptions) error {
|
||||
|
||||
runArtifacts, err := b.setupMounts(mountPoint, spec, path, options.Mounts, bindFiles, volumes, b.CommonBuildOpts.Volumes, options.RunMounts, runMountInfo)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error resolving mountpoints for container %q: %w", b.ContainerID, err)
|
||||
return fmt.Errorf("resolving mountpoints for container %q: %w", b.ContainerID, err)
|
||||
}
|
||||
if runArtifacts.SSHAuthSock != "" {
|
||||
sshenv := "SSH_AUTH_SOCK=" + runArtifacts.SSHAuthSock
|
||||
@@ -316,7 +316,7 @@ func (b *Builder) runSetupVolumeMounts(mountLabel string, volumeMounts []string,
|
||||
// Make sure the overlay directory is clean before running
|
||||
_, err := b.store.ContainerDirectory(b.ContainerID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error looking up container directory for %s: %w", b.ContainerID, err)
|
||||
return nil, fmt.Errorf("looking up container directory for %s: %w", b.ContainerID, err)
|
||||
}
|
||||
|
||||
parseMount := func(mountType, host, container string, options []string) (specs.Mount, error) {
|
||||
@@ -542,7 +542,7 @@ func runMakeStdioPipe(uid, gid int) ([][]int, error) {
|
||||
for i := range stdioPipe {
|
||||
stdioPipe[i] = make([]int, 2)
|
||||
if err := unix.Pipe(stdioPipe[i]); err != nil {
|
||||
return nil, fmt.Errorf("error creating pipe for container FD %d: %w", i, err)
|
||||
return nil, fmt.Errorf("creating pipe for container FD %d: %w", i, err)
|
||||
}
|
||||
}
|
||||
return stdioPipe, nil
|
||||
|
||||
Reference in New Issue
Block a user