go.mod: github.com/opencontainers/image-spec v1.1.0-rc3

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2023-05-09 22:24:47 +09:00
parent bd185813ac
commit 4347fc8bc2
19 changed files with 64 additions and 83 deletions

View File

@@ -464,6 +464,7 @@ func WithImageConfigArgs(image Image, args []string) SpecOpts {
return errors.New("no arguments specified")
}
//nolint:staticcheck // ArgsEscaped is deprecated
if config.ArgsEscaped && (len(config.Entrypoint) > 0 || cmdFromImage) {
s.Process.Args = nil
s.Process.CommandLine = cmd[0]