Skip to content

Commit

Permalink
--kaniko-dir should take precedence over KANIKO_DIR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prima101112 committed May 21, 2024
1 parent 9c08f1c commit 75137dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/executor/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 75137dc

Please sign in to comment.