From ed6226d9462ecec24df7af668ada7f00408581b7 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Mon, 15 Jul 2019 14:08:36 +0200 Subject: [PATCH] Global `basedirs` flag uses wrong default value The default value of the global `basedirs` flag (1) used the `config.AppConfig.Snowblocks.Paths` array instead of `config.AppConfig.Snowblocks.BaseDirs` that resulted in invalid paths being processed by task runners and the configuration validators. References: (1) https://github.com/arcticicestudio/snowsaw/blob/145a4c36caf960fc9a43b16c105df997e819a04d/cmd/snowsaw/snowsaw.go#L74 Epic: GH-33 Fixes GH-77 --- cmd/snowsaw/snowsaw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/snowsaw/snowsaw.go b/cmd/snowsaw/snowsaw.go index 2c0f494..05206a5 100644 --- a/cmd/snowsaw/snowsaw.go +++ b/cmd/snowsaw/snowsaw.go @@ -72,7 +72,7 @@ func init() { rootCmd.PersistentFlags().StringVar(&explicitConfigFilePath, "config", "", "path to the configuration file") rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "enable debug information output") rootCmd.PersistentFlags().StringSliceVarP( - &snowblockBaseDirs, "basedirs", "b", config.AppConfig.Snowblocks.Paths, + &snowblockBaseDirs, "basedirs", "b", config.AppConfig.Snowblocks.BaseDirs, "comma-separated paths to snowblock base directories") // Set the app version information for the automatically generated `version` flag.