Skip to content

Commit ed6226d

Browse files
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
1 parent 006ae99 commit ed6226d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/snowsaw/snowsaw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func init() {
7272
rootCmd.PersistentFlags().StringVar(&explicitConfigFilePath, "config", "", "path to the configuration file")
7373
rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "enable debug information output")
7474
rootCmd.PersistentFlags().StringSliceVarP(
75-
&snowblockBaseDirs, "basedirs", "b", config.AppConfig.Snowblocks.Paths,
75+
&snowblockBaseDirs, "basedirs", "b", config.AppConfig.Snowblocks.BaseDirs,
7676
"comma-separated paths to snowblock base directories")
7777

7878
// Set the app version information for the automatically generated `version` flag.

0 commit comments

Comments
 (0)