From 00ad40713f0077c993d1e9c3fa933768a882b1ec Mon Sep 17 00:00:00 2001 From: Marcos Nils <1578458+marcosnils@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:51:36 -0300 Subject: [PATCH] initialze `bins` map if it's nil (#202) fixes #201 Signed-off-by: Marcos Lilljedahl --- pkg/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 69f99aa..32f3393 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -94,6 +94,11 @@ func CheckAndLoad() error { } } + + if cfg.Bins == nil { + cfg.Bins = map[string]*Binary{} + } + log.Debugf("Download path set to %s", cfg.DefaultPath) return nil }