mirror of
https://github.com/containers/podman.git
synced 2025-10-21 05:13:47 +08:00
Bump github.com/containers/common from 0.11.1 to 0.11.2
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.11.1 to 0.11.2. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.11.1...v0.11.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Daniel J Walsh

parent
d8c6cc1684
commit
c4e391ad2e
11
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
11
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -19,12 +19,15 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// _configPath is the path to the containers/containers.conf
|
||||
// inside a given config directory.
|
||||
_configPath = "containers/containers.conf"
|
||||
// DefaultContainersConfig holds the default containers config path
|
||||
DefaultContainersConfig = "/usr/share/containers/containers.conf"
|
||||
DefaultContainersConfig = "/usr/share/" + _configPath
|
||||
// OverrideContainersConfig holds the default config paths overridden by the root user
|
||||
OverrideContainersConfig = "/etc/containers/containers.conf"
|
||||
OverrideContainersConfig = "/etc/" + _configPath
|
||||
// UserOverrideContainersConfig holds the containers config path overridden by the rootless user
|
||||
UserOverrideContainersConfig = ".config/containers/containers.conf"
|
||||
UserOverrideContainersConfig = ".config/" + _configPath
|
||||
)
|
||||
|
||||
// RuntimeStateStore is a constant indicating which state store implementation
|
||||
@ -827,7 +830,7 @@ func isDirectory(path string) error {
|
||||
|
||||
func rootlessConfigPath() (string, error) {
|
||||
if configHome := os.Getenv("XDG_CONFIG_HOME"); configHome != "" {
|
||||
return filepath.Join(configHome, UserOverrideContainersConfig), nil
|
||||
return filepath.Join(configHome, _configPath), nil
|
||||
}
|
||||
home, err := unshare.HomeDir()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user