From 01f06feae8cf21028fe59f4447cecc1cb32f57b2 Mon Sep 17 00:00:00 2001 From: haitham911 Date: Mon, 21 Oct 2024 05:10:11 +0300 Subject: [PATCH] check stack flag is set on vendor pull --- internal/exec/vendor_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/exec/vendor_utils.go b/internal/exec/vendor_utils.go index ee6acb483..11b0eecdc 100644 --- a/internal/exec/vendor_utils.go +++ b/internal/exec/vendor_utils.go @@ -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 }