Skip to content

Commit b6fb91c

Browse files
Merge pull request #23699 from TomSweeneyRedHat/dev/tsweeney/buildah_v1.37.2
[v5.2] Bump Buildah to v1.37.2, c/common v0.60.2, c/image v5.32.2
2 parents b54f985 + 570fbc4 commit b6fb91c

File tree

331 files changed

+959
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+959
-502
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS}
6262
# N/B: This value is managed by Renovate, manual changes are
6363
# possible, as long as they don't disturb the formatting
6464
# (i.e. DO NOT ADD A 'v' prefix!)
65-
GOLANGCI_LINT_VERSION := 1.59.1
65+
GOLANGCI_LINT_VERSION := 1.60.1
6666
PYTHON ?= $(shell command -v python3 python|head -n1)
6767
PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
6868
# ~/.local/bin is not in PATH on all systems

cmd/podman-testing/create.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package main
24

35
import (

cmd/podman-testing/data.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package main
24

35
import (

cmd/podman-testing/layer.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package main
24

35
import (

cmd/podman-testing/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package main
24

35
import (

cmd/podman-testing/remove.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package main
24

35
import (

cmd/podman-testing/store_supported.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build linux && !remote
2-
// +build linux,!remote
32

43
package main
54

cmd/podman-testing/store_unsupported.go

-16
This file was deleted.

cmd/podman/containers/commit.go

-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/containers/common/pkg/completion"
1010
"github.com/containers/podman/v5/cmd/podman/common"
1111
"github.com/containers/podman/v5/cmd/podman/registry"
12-
"github.com/containers/podman/v5/pkg/api/handlers"
1312
"github.com/containers/podman/v5/pkg/domain/entities"
1413
"github.com/spf13/cobra"
1514
)
@@ -105,9 +104,6 @@ func commit(cmd *cobra.Command, args []string) error {
105104
if !commitOptions.Quiet {
106105
commitOptions.Writer = os.Stderr
107106
}
108-
if len(commitOptions.Changes) > 0 {
109-
commitOptions.Changes = handlers.DecodeChanges(commitOptions.Changes)
110-
}
111107
if len(configFile) > 0 {
112108
cfg, err := os.ReadFile(configFile)
113109
if err != nil {

cmd/podman/containers/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func CreateInit(c *cobra.Command, vals entities.ContainerCreateOptions, isInfra
314314
vals.ShmSizeSystemd = c.Flag("shm-size-systemd").Value.String()
315315
}
316316
if (c.Flag("dns").Changed || c.Flag("dns-option").Changed || c.Flag("dns-search").Changed) && vals.Net != nil && (vals.Net.Network.NSMode == specgen.NoNetwork || vals.Net.Network.IsContainer()) {
317-
return vals, fmt.Errorf("conflicting options: dns and the network mode: " + string(vals.Net.Network.NSMode))
317+
return vals, errors.New("conflicting options: dns and the network mode: " + string(vals.Net.Network.NSMode))
318318
}
319319
noHosts, err := c.Flags().GetBool("no-hosts")
320320
if err != nil {

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ require (
1212
github.com/checkpoint-restore/checkpointctl v1.2.1
1313
github.com/checkpoint-restore/go-criu/v7 v7.1.0
1414
github.com/containernetworking/plugins v1.5.1
15-
github.com/containers/buildah v1.37.1
16-
github.com/containers/common v0.60.1
15+
github.com/containers/buildah v1.37.2
16+
github.com/containers/common v0.60.2
1717
github.com/containers/conmon v2.0.20+incompatible
1818
github.com/containers/gvisor-tap-vsock v0.7.4
19-
github.com/containers/image/v5 v5.32.1
19+
github.com/containers/image/v5 v5.32.2
2020
github.com/containers/libhvee v0.7.1
2121
github.com/containers/ocicrypt v1.2.0
2222
github.com/containers/psgo v1.9.0

go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ github.com/containernetworking/cni v1.2.3 h1:hhOcjNVUQTnzdRJ6alC5XF+wd9mfGIUaj8F
7777
github.com/containernetworking/cni v1.2.3/go.mod h1:DuLgF+aPd3DzcTQTtp/Nvl1Kim23oFKdm2okJzBQA5M=
7878
github.com/containernetworking/plugins v1.5.1 h1:T5ji+LPYjjgW0QM+KyrigZbLsZ8jaX+E5J/EcKOE4gQ=
7979
github.com/containernetworking/plugins v1.5.1/go.mod h1:MIQfgMayGuHYs0XdNudf31cLLAC+i242hNm6KuDGqCM=
80-
github.com/containers/buildah v1.37.1 h1:BZ3vESqzmqGuj9kGqyjitdn9o0hD7owdZM699qtfMTc=
81-
github.com/containers/buildah v1.37.1/go.mod h1:p/qfxznBMSn9YGYNBh0Sf2k4modfjD3us4rVqvmyeZM=
82-
github.com/containers/common v0.60.1 h1:hMJNKfDxfXY91zD7mr4t/Ybe8JbAsTq5nkrUaCqTKsA=
83-
github.com/containers/common v0.60.1/go.mod h1:tB0DRxznmHviECVHnqgWbl+8AVCSMZLA8qe7+U7KD6k=
80+
github.com/containers/buildah v1.37.2 h1:KiJ3jVNUvdtGORxDz8fjjLkR81ZHQZIfnGWJWavks40=
81+
github.com/containers/buildah v1.37.2/go.mod h1:alFCM3X0xfhE6ZjsFQkUlOMyKzOnbv9FL9fe1Ho48PA=
82+
github.com/containers/common v0.60.2 h1:utcwp2YkO8c0mNlwRxsxfOiqfj157FRrBjxgjR6f+7o=
83+
github.com/containers/common v0.60.2/go.mod h1:I0upBi1qJX3QmzGbUOBN1LVP6RvkKhd3qQpZbQT+Q54=
8484
github.com/containers/conmon v2.0.20+incompatible h1:YbCVSFSCqFjjVwHTPINGdMX1F6JXHGTUje2ZYobNrkg=
8585
github.com/containers/conmon v2.0.20+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
8686
github.com/containers/gvisor-tap-vsock v0.7.4 h1:iOtr/KEi+r599OOx1+9Qbss91jD5yxh1HO35MKTdths=
8787
github.com/containers/gvisor-tap-vsock v0.7.4/go.mod h1:orUOSdxU/IGEOxhecu2i7EzV7k7e2TgQlyCBfUngS0A=
88-
github.com/containers/image/v5 v5.32.1 h1:fVa7GxRC4BCPGsfSRs4JY12WyeY26SUYQ0NuANaCFrI=
89-
github.com/containers/image/v5 v5.32.1/go.mod h1:v1l73VeMugfj/QtKI+jhYbwnwFCFnNGckvbST3rQ5Hk=
88+
github.com/containers/image/v5 v5.32.2 h1:SzNE2Y6sf9b1GJoC8qjCuMBXwQrACFp4p0RK15+4gmQ=
89+
github.com/containers/image/v5 v5.32.2/go.mod h1:v1l73VeMugfj/QtKI+jhYbwnwFCFnNGckvbST3rQ5Hk=
9090
github.com/containers/libhvee v0.7.1 h1:dWGF5GLq9DZvXo3P8aDp3cNieL5eCaSell4UmeA/jY4=
9191
github.com/containers/libhvee v0.7.1/go.mod h1:fRKB3AyIqHMvq6xaeYhTpckM2cdoq0oecolyoiuLP7M=
9292
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 h1:Qzk5C6cYglewc+UyGf6lc8Mj2UaPTHy/iF2De0/77CA=

hack/golangci-lint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ BUILD_TAGS_TUNNEL="$BUILD_TAGS_DEFAULT,remote"
1818
BUILD_TAGS_REMOTE="remote,containers_image_openpgp"
1919

2020
SKIP_DIRS_ABI=""
21-
SKIP_DIRS_TUNNEL="pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi"
22-
SKIP_DIRS_REMOTE="libpod/events,pkg/api,pkg/domain/infra/abi,internal/domain/infra/abi,pkg/machine/qemu,pkg/trust,test"
21+
SKIP_DIRS_TUNNEL=""
22+
SKIP_DIRS_REMOTE="libpod/events,pkg/machine/qemu,pkg/machine/wsl,test"
2323

2424
declare -a to_lint
25-
to_lint=(ABI TUNNEL REMOTE)
25+
to_lint=(ABI TUNNEL)
2626

2727
# Special-case, for Darwin and Windows only "remote" linting is possible and required.
2828
if [[ "$GOOS" == "windows" ]] || [[ "$GOOS" == "darwin" ]]; then

internal/domain/entities/engine_testing.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package entities
24

35
import (

internal/domain/entities/testing.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package entities
24

35
type CreateStorageLayerOptions struct {

internal/domain/infra/abi/testing.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package abi
24

35
import (

internal/domain/infra/abi/testing_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package abi
24

35
import "github.com/containers/podman/v5/internal/domain/entities"

internal/domain/infra/runtime_tunnel.go

-25
This file was deleted.

internal/domain/infra/tunnel/testing.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package tunnel
24

35
import (

internal/domain/infra/tunnel/testing_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package tunnel
24

35
import "github.com/containers/podman/v5/internal/domain/entities"

libpod/container_top_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (c *Container) execPSinContainer(args []string) ([]string, error) {
411411
if logrus.GetLevel() >= logrus.DebugLevel {
412412
// If we're running in debug mode or higher, we might want to have a
413413
// look at stderr which includes debug logs from conmon.
414-
logrus.Debugf(errBuf.String())
414+
logrus.Debug(errBuf.String())
415415
}
416416

417417
if err := <-outErrChan; err != nil {

libpod/events/logfile_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build linux || freebsd
2+
13
package events
24

35
import (

pkg/annotations/validate.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package annotations
22

33
import (
4+
"errors"
45
"fmt"
56
"regexp"
67
"strings"
@@ -41,7 +42,7 @@ func isDNS1123Subdomain(value string) error {
4142
}
4243

4344
if !dns1123SubdomainRegexp.MatchString(value) {
44-
return fmt.Errorf(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
45+
return errors.New(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
4546
}
4647

4748
return nil

pkg/api/handlers/compat/auth.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/changes.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_archive.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_attach.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_create.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_export.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_logs.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_pause.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_prune.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_restart.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_start.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_stats_freebsd.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_stats_linux.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_stop.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_top.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/containers_unpause.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/events.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/exec.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/images.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (
@@ -137,7 +139,7 @@ func CommitContainer(w http.ResponseWriter, r *http.Request) {
137139
options.Author = query.Author
138140
options.Pause = query.Pause
139141
options.Squash = query.Squash
140-
options.Changes = handlers.DecodeChanges(query.Changes)
142+
options.Changes = util.DecodeChanges(query.Changes)
141143
if r.Body != nil {
142144
defer r.Body.Close()
143145
if options.CommitOptions.OverrideConfig, err = abi.DecodeOverrideConfig(r.Body); err != nil {

pkg/api/handlers/compat/images_build.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/images_history.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/images_prune.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/images_push.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

pkg/api/handlers/compat/images_remove.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !remote
2+
13
package compat
24

35
import (

0 commit comments

Comments
 (0)