Bump Buildah to v1.35.0

As the title says.  This is the last step in the vendor dance for
Podman v5.0.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
tomsweeneyredhat
2024-03-07 07:49:49 -05:00
parent 15e508a639
commit b234bb55e4
41 changed files with 386 additions and 215 deletions

View File

@@ -2,6 +2,90 @@
# Changelog
## v1.35.0 (2024-03-06)
fix(deps): update module github.com/stretchr/testify to v1.9.0
cgroups: reuse version check from c/common
Update vendor of containers/(common,image)
fix(deps): update github.com/containers/storage digest to eadc620
fix(deps): update github.com/containers/luksy digest to ceb12d4
fix(deps): update github.com/containers/image/v5 digest to cdc6802
manifest add: complain if we get artifact flags without --artifact
Use retry logic from containers/common
Vendor in containers/(storage,image,common)
Update module golang.org/x/crypto to v0.20.0
Add comment re: Total Success task name
tests: skip_if_no_unshare(): check for --setuid
Properly handle build --pull=false
[skip-ci] Update tim-actions/get-pr-commits action to v1.3.1
Update module go.etcd.io/bbolt to v1.3.9
Revert "Reduce official image size"
Update module github.com/opencontainers/image-spec to v1.1.0
Reduce official image size
Build with CNI support on FreeBSD
build --all-platforms: skip some base "image" platforms
Bump main to v1.35.0-dev
Vendor in latest containers/(storage,image,common)
Split up error messages for missing --sbom related flags
`buildah manifest`: add artifact-related options
cmd/buildah/manifest.go: lock lists before adding/annotating/pushing
cmd/buildah/manifest.go: don't make struct declarations aliases
Use golang.org/x/exp/slices.Contains
Disable loong64 again
Fix a couple of typos in one-line comments
egrep is obsolescent; use grep -E
Try Cirrus with a newer VM version
Set CONTAINERS_CONF in the chroot-mount-flags integration test
Update to match dependency API update
Update github.com/openshift/imagebuilder and containers/common
docs: correct default authfile path
fix(deps): update module github.com/containerd/containerd to v1.7.13
tests: retrofit test for heredoc summary
build, heredoc: show heredoc summary in build output
manifest, push: add support for --retry and --retry-delay
fix(deps): update github.com/openshift/imagebuilder digest to b767bc3
imagebuildah: fix crash with empty RUN
fix(deps): update github.com/containers/luksy digest to b62d551
fix(deps): update module github.com/opencontainers/runc to v1.1.12 [security]
fix(deps): update module github.com/moby/buildkit to v0.12.5 [security]
Make buildah match podman for handling of ulimits
docs: move footnotes to where they're applicable
Allow users to specify no-dereference
Run codespell on code
Fix FreeBSD version parsing
Fix a build break on FreeBSD
Remove a bad FROM line
fix(deps): update module github.com/onsi/gomega to v1.31.1
fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc6
docs: use reversed logo for dark theme in README
build,commit: add --sbom to scan and produce SBOMs when committing
commit: force omitHistory if the parent has layers but no history
docs: fix a couple of typos
internal/mkcw.Archive(): handle extra image content
stage_executor,heredoc: honor interpreter in heredoc
stage_executor,layers: burst cache if heredoc content is changed
fix(deps): update module golang.org/x/crypto to v0.18.0
Replace map[K]bool with map[K]struct{} where it makes sense
fix(deps): update module golang.org/x/sync to v0.6.0
fix(deps): update module golang.org/x/term to v0.16.0
Bump CI VMs
Replace strings.SplitN with strings.Cut
fix(deps): update github.com/containers/storage digest to ef81e9b
fix(deps): update github.com/containers/image/v5 digest to 1b221d4
fix(deps): update module github.com/fsouza/go-dockerclient to v1.10.1
Document use of containers-transports values in buildah
fix(deps): update module golang.org/x/crypto to v0.17.0 [security]
chore(deps): update dependency containers/automation_images to v20231208
manifest: addCompression use default from containers.conf
commit: add a --add-file flag
mkcw: populate the rootfs using an overlay
chore(deps): update dependency containers/automation_images to v20230517
[skip-ci] Update actions/stale action to v9
fix(deps): update module github.com/containernetworking/plugins to v1.4.0
fix(deps): update github.com/containers/image/v5 digest to 7a40fee
Bump to v1.34.1-dev
Ignore errors if label.Relabel returns ENOSUP
## v1.34.0 (2023-12-11)
vendor: update c/{common,image,storage}

View File

@@ -14,6 +14,8 @@ BINDIR := $(PREFIX)/bin
BASHINSTALLDIR = $(PREFIX)/share/bash-completion/completions
BUILDFLAGS := -tags "$(BUILDTAGS)"
BUILDAH := buildah
SELINUXOPT ?= $(shell test -x /usr/sbin/selinuxenabled && selinuxenabled && echo -Z)
SELINUXTYPE=container_runtime_exec_t
GO := go
GO_LDFLAGS := $(shell if $(GO) version|grep -q gccgo; then echo "-gccgoflags"; else echo "-ldflags"; fi)
@@ -75,6 +77,7 @@ static:
bin/buildah: $(SOURCES) cmd/buildah/*.go internal/mkcw/embed/entrypoint_amd64.gz
$(GO_BUILD) $(BUILDAH_LDFLAGS) $(GO_GCFLAGS) "$(GOGCFLAGS)" -o $@ $(BUILDFLAGS) ./cmd/buildah
test -z "${SELINUXOPT}" || chcon --verbose -t $(SELINUXTYPE) $@
ifneq ($(shell as --version | grep x86_64),)
internal/mkcw/embed/entrypoint_amd64.gz: internal/mkcw/embed/entrypoint_amd64

View File

@@ -1,3 +1,86 @@
- Changelog for v1.35.0 (2024-03-06)
* fix(deps): update module github.com/stretchr/testify to v1.9.0
* cgroups: reuse version check from c/common
* Update vendor of containers/(common,image)
* fix(deps): update github.com/containers/storage digest to eadc620
* fix(deps): update github.com/containers/luksy digest to ceb12d4
* fix(deps): update github.com/containers/image/v5 digest to cdc6802
* manifest add: complain if we get artifact flags without --artifact
* Use retry logic from containers/common
* Vendor in containers/(storage,image,common)
* Update module golang.org/x/crypto to v0.20.0
* Add comment re: Total Success task name
* tests: skip_if_no_unshare(): check for --setuid
* Properly handle build --pull=false
* [skip-ci] Update tim-actions/get-pr-commits action to v1.3.1
* Update module go.etcd.io/bbolt to v1.3.9
* Revert "Reduce official image size"
* Update module github.com/opencontainers/image-spec to v1.1.0
* Reduce official image size
* Build with CNI support on FreeBSD
* build --all-platforms: skip some base "image" platforms
* Bump main to v1.35.0-dev
* Vendor in latest containers/(storage,image,common)
* Split up error messages for missing --sbom related flags
* `buildah manifest`: add artifact-related options
* cmd/buildah/manifest.go: lock lists before adding/annotating/pushing
* cmd/buildah/manifest.go: don't make struct declarations aliases
* Use golang.org/x/exp/slices.Contains
* Disable loong64 again
* Fix a couple of typos in one-line comments
* egrep is obsolescent; use grep -E
* Try Cirrus with a newer VM version
* Set CONTAINERS_CONF in the chroot-mount-flags integration test
* Update to match dependency API update
* Update github.com/openshift/imagebuilder and containers/common
* docs: correct default authfile path
* fix(deps): update module github.com/containerd/containerd to v1.7.13
* tests: retrofit test for heredoc summary
* build, heredoc: show heredoc summary in build output
* manifest, push: add support for --retry and --retry-delay
* fix(deps): update github.com/openshift/imagebuilder digest to b767bc3
* imagebuildah: fix crash with empty RUN
* fix(deps): update github.com/containers/luksy digest to b62d551
* fix(deps): update module github.com/opencontainers/runc to v1.1.12 [security]
* fix(deps): update module github.com/moby/buildkit to v0.12.5 [security]
* Make buildah match podman for handling of ulimits
* docs: move footnotes to where they're applicable
* Allow users to specify no-dereference
* Run codespell on code
* Fix FreeBSD version parsing
* Fix a build break on FreeBSD
* Remove a bad FROM line
* fix(deps): update module github.com/onsi/gomega to v1.31.1
* fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc6
* docs: use reversed logo for dark theme in README
* build,commit: add --sbom to scan and produce SBOMs when committing
* commit: force omitHistory if the parent has layers but no history
* docs: fix a couple of typos
* internal/mkcw.Archive(): handle extra image content
* stage_executor,heredoc: honor interpreter in heredoc
* stage_executor,layers: burst cache if heredoc content is changed
* fix(deps): update module golang.org/x/crypto to v0.18.0
* Replace map[K]bool with map[K]struct{} where it makes sense
* fix(deps): update module golang.org/x/sync to v0.6.0
* fix(deps): update module golang.org/x/term to v0.16.0
* Bump CI VMs
* Replace strings.SplitN with strings.Cut
* fix(deps): update github.com/containers/storage digest to ef81e9b
* fix(deps): update github.com/containers/image/v5 digest to 1b221d4
* fix(deps): update module github.com/fsouza/go-dockerclient to v1.10.1
* Document use of containers-transports values in buildah
* fix(deps): update module golang.org/x/crypto to v0.17.0 [security]
* chore(deps): update dependency containers/automation_images to v20231208
* manifest: addCompression use default from containers.conf
* commit: add a --add-file flag
* mkcw: populate the rootfs using an overlay
* chore(deps): update dependency containers/automation_images to v20230517
* [skip-ci] Update actions/stale action to v9
* fix(deps): update module github.com/containernetworking/plugins to v1.4.0
* fix(deps): update github.com/containers/image/v5 digest to 7a40fee
* Bump to v1.34.1-dev
* Ignore errors if label.Relabel returns ENOSUP
- Changelog for v1.34.0 (2023-12-11)
* vendor: update c/{common,image,storage}
* run: Allow using just one jail per container on FreeBSD

View File

@@ -29,7 +29,7 @@ const (
// identify working containers.
Package = "buildah"
// Version for the Package. Also used by .packit.sh for Packit builds.
Version = "1.35.0-dev"
Version = "1.35.0"
// DefaultRuntime if containers.conf fails.
DefaultRuntime = "runc"

View File

@@ -12,6 +12,7 @@ import (
internalUtil "github.com/containers/buildah/internal/util"
putil "github.com/containers/buildah/pkg/util"
"github.com/containers/buildah/util"
"github.com/containers/common/pkg/cgroups"
"github.com/containers/storage"
"github.com/containers/storage/pkg/system"
"github.com/containers/storage/pkg/unshare"
@@ -50,7 +51,7 @@ func hostInfo() map[string]interface{} {
info["cpus"] = runtime.NumCPU()
info["rootless"] = unshare.IsRootless()
unified, err := util.IsCgroup2UnifiedMode()
unified, err := cgroups.IsCgroup2UnifiedMode()
if err != nil {
logrus.Error(err, "err reading cgroups mode")
}

View File

@@ -9,7 +9,6 @@ import (
"path/filepath"
"sort"
"strings"
"sync"
"syscall"
"github.com/containers/buildah/define"
@@ -376,12 +375,6 @@ func TruncateString(str string, to int) string {
return newStr
}
var (
isUnifiedOnce sync.Once
isUnified bool
isUnifiedErr error
)
// fileExistsAndNotADir - Check to see if a file exists
// and that it is not a directory.
func fileExistsAndNotADir(path string) (bool, error) {

View File

@@ -1,20 +0,0 @@
package util
import (
"syscall"
"golang.org/x/sys/unix"
)
// IsCgroup2UnifiedMode returns whether we are running in cgroup 2 cgroup2 mode.
func IsCgroup2UnifiedMode() (bool, error) {
isUnifiedOnce.Do(func() {
var st syscall.Statfs_t
if err := syscall.Statfs("/sys/fs/cgroup", &st); err != nil {
isUnified, isUnifiedErr = false, err
} else {
isUnified, isUnifiedErr = st.Type == unix.CGROUP2_SUPER_MAGIC, nil
}
})
return isUnified, isUnifiedErr
}