mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
Bump to Buildah v1.40.0
Bumps to Buildah v1.40.0 and adds the `--inherits-labels` option to build and farm build man pages. Also turn off the inherit-labels option test for now as it seems to be rathr unhappy. Issue for inherit-labels test failure: https://github.com/containers/podman/issues/25938 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/buildah/pkg/cli/common.go
generated
vendored
11
vendor/github.com/containers/buildah/pkg/cli/common.go
generated
vendored
@@ -6,6 +6,7 @@ package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"maps"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
@@ -71,6 +72,7 @@ type BudResults struct {
|
||||
Format string
|
||||
From string
|
||||
Iidfile string
|
||||
InheritLabels bool
|
||||
Label []string
|
||||
LayerLabel []string
|
||||
Logfile string
|
||||
@@ -230,6 +232,7 @@ func GetBudFlags(flags *BudResults) pflag.FlagSet {
|
||||
fs.StringVar(&flags.CertDir, "cert-dir", "", "use certificates at the specified path to access the registry")
|
||||
fs.BoolVar(&flags.Compress, "compress", false, "this is a legacy option, which has no effect on the image")
|
||||
fs.BoolVar(&flags.CompatVolumes, "compat-volumes", false, "preserve the contents of VOLUMEs during RUN instructions")
|
||||
fs.BoolVar(&flags.InheritLabels, "inherit-labels", true, "inherit the labels from the base image or base stages.")
|
||||
fs.StringArrayVar(&flags.CPPFlags, "cpp-flag", []string{}, "set additional flag to pass to C preprocessor (cpp)")
|
||||
fs.StringVar(&flags.Creds, "creds", "", "use `[username[:password]]` for accessing the registry")
|
||||
fs.StringVarP(&flags.CWOptions, "cw", "", "", "confidential workload `options`")
|
||||
@@ -455,13 +458,9 @@ func GetFromAndBudFlagsCompletions() commonComp.FlagCompletions {
|
||||
|
||||
// Add in the usernamespace and namespace flag completions
|
||||
userNsComp := GetUserNSFlagsCompletions()
|
||||
for name, comp := range userNsComp {
|
||||
flagCompletion[name] = comp
|
||||
}
|
||||
maps.Copy(flagCompletion, userNsComp)
|
||||
namespaceComp := GetNameSpaceFlagsCompletions()
|
||||
for name, comp := range namespaceComp {
|
||||
flagCompletion[name] = comp
|
||||
}
|
||||
maps.Copy(flagCompletion, namespaceComp)
|
||||
|
||||
return flagCompletion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user