Skip to content

Commit

Permalink
check stack flag is set on vendor pull
Browse files Browse the repository at this point in the history
  • Loading branch information
haitham911 committed Oct 21, 2024
1 parent a70d456 commit 01f06fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/exec/vendor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ func ExecuteVendorPullCommand(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}

// check stack flag is set
processStacks := cmd.Flags().Changed("stack")
// InitCliConfig finds and merges CLI configurations in the following order:
// system dir, home dir, current dir, ENV vars, command-line arguments
// vendor pull not require stack configs so we pass false to InitCliConfig
cliConfig, err := cfg.InitCliConfig(info, false)
cliConfig, err := cfg.InitCliConfig(info, processStacks)
if err != nil {
return err
}
Expand Down

0 comments on commit 01f06fe

Please sign in to comment.