Bump Buidah to v1.42.0 for Podman v5.7

Vendor Buildah v1.42.0 into Podman for v5.7.0.
This will also drag in:

go.podman.io/common v0.66.0
go.podman.io/image v5.38.0
go.podman.io/storage v1.61.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
tomsweeneyredhat
2025-10-22 11:38:57 -04:00
parent 08c670b232
commit c72102d1b2
48 changed files with 367 additions and 903 deletions

View File

@@ -1,5 +1,24 @@
version: "2"
linters:
disable-all: true
default: none
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

View File

@@ -30,7 +30,7 @@ type UpdateContainerOptions struct {
//
// See https://goo.gl/Y6fXUy for more details.
func (c *Client) UpdateContainer(id string, opts UpdateContainerOptions) error {
resp, err := c.do(http.MethodPost, fmt.Sprintf("/containers/"+id+"/update"), doOptions{
resp, err := c.do(http.MethodPost, fmt.Sprintf("/containers/%s/update", id), doOptions{
data: opts,
forceJSON: true,
context: opts.Context,

View File

@@ -271,11 +271,13 @@ func (eventState *eventMonitoringState) monitorEvents(c *Client, opts EventsOpti
return
}
if ev == EOFEvent {
eventState.disableEventMonitoring()
go eventState.disableEventMonitoring()
return
}
eventState.updateLastSeen(ev)
eventState.sendEvent(ev)
go func(ev *APIEvents) {
eventState.updateLastSeen(ev)
eventState.sendEvent(ev)
}(ev)
case err = <-eventState.errC:
if errors.Is(err, ErrNoListeners) {
eventState.disableEventMonitoring()

View File

@@ -12,7 +12,7 @@ import (
"path/filepath"
"strings"
"github.com/docker/docker/pkg/archive"
"github.com/moby/go-archive"
"github.com/moby/patternmatcher"
)