mirror of
https://github.com/containers/podman.git
synced 2025-12-04 20:28:40 +08:00
vendor: update containers/{buildah,common,image,storage}
The change in healthcheck_run_test.go, depends on the containers/image change: commit b6afa8ca7b324aca8fd5a7b5b206fc05c0c04874 Author: Mikhail Sokolov <msokolov@evolution.com> Date: Fri Mar 15 13:37:44 2024 +0200 Add support for Docker HealthConfig.StartInterval (v25.0.0+) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/common/pkg/config/new.go
generated
vendored
5
vendor/github.com/containers/common/pkg/config/new.go
generated
vendored
@@ -11,6 +11,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
"github.com/containers/storage/pkg/fileutils"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
@@ -101,7 +102,7 @@ func newLocked(options *Options) (*Config, error) {
|
||||
// The _OVERRIDE variable _must_ always win. That's a contract we need
|
||||
// to honor (for the Podman CI).
|
||||
if path := os.Getenv(containersConfOverrideEnv); path != "" {
|
||||
if _, err := os.Stat(path); err != nil {
|
||||
if err := fileutils.Exists(path); err != nil {
|
||||
return nil, fmt.Errorf("%s file: %w", containersConfOverrideEnv, err)
|
||||
}
|
||||
options.additionalConfigs = append(options.additionalConfigs, path)
|
||||
@@ -152,7 +153,7 @@ func NewConfig(userConfigPath string) (*Config, error) {
|
||||
// file settings.
|
||||
func systemConfigs() (configs []string, finalErr error) {
|
||||
if path := os.Getenv(containersConfEnv); path != "" {
|
||||
if _, err := os.Stat(path); err != nil {
|
||||
if err := fileutils.Exists(path); err != nil {
|
||||
return nil, fmt.Errorf("%s file: %w", containersConfEnv, err)
|
||||
}
|
||||
return append(configs, path), nil
|
||||
|
||||
Reference in New Issue
Block a user