diff --git a/src/cmd/root.go b/src/cmd/root.go index f72358e288..7a1ae9c563 100644 --- a/src/cmd/root.go +++ b/src/cmd/root.go @@ -82,6 +82,8 @@ func preRun(cmd *cobra.Command, _ []string) error { if cmd.Parent() == nil { skipLogFile = true } + + // Configure the global message instance. err := setupMessage(LogLevelCLI, skipLogFile, NoColor) if err != nil { return err diff --git a/src/types/packager.go b/src/types/packager.go index 0540e228e2..840d05242a 100644 --- a/src/types/packager.go +++ b/src/types/packager.go @@ -13,6 +13,7 @@ import ( // PackagerConfig is the main struct that the packager uses to hold high-level options. type PackagerConfig struct { // Context provides deadlines, cancellations, and values throughout the API. + // NOTE(mkcp): Storing ctx on structs is not recommended, but this is intended as a temporary workaround. Context context.Context // CreateOpts tracks the user-defined options used to create the package