This commit is contained in:
Prima Adi Pradana 2025-06-15 23:01:08 +01:00 committed by GitHub
commit 183f2e1bd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {