Compare commits

...

2 Commits

Author SHA1 Message Date
Prima Adi Pradana 82e656afce
Merge 75137dcdc3 into 1d2bff5959 2025-05-28 15:36:17 +08:00
prima 75137dcdc3 --kaniko-dir should take precedence over KANIKO_DIR fix 2024-05-21 23:20:13 +07:00
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ var RootCmd = &cobra.Command{
dir := config.KanikoDir
if opts.KanikoDir != constants.DefaultKanikoPath {
dir = opts.KanikoDir
//forcing the KANIKO_DIR to be the same as the flag in current process (all executeCommand())
os.Setenv("KANIKO_DIR", opts.KanikoDir)
}
if err := checkKanikoDir(dir); err != nil {