From 28f0329d4acbf34c27390bbdd0ea9bf6a5ff9e87 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sat, 6 May 2023 16:00:24 -0700 Subject: [PATCH] bump go version and fix invalid nil assignment --- go.mod | 2 +- parse/myrepos.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index f4c4a0f..595f720 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/taigrr/mg -go 1.19 +go 1.20 diff --git a/parse/myrepos.go b/parse/myrepos.go index 959be0d..0dbda59 100644 --- a/parse/myrepos.go +++ b/parse/myrepos.go @@ -46,7 +46,10 @@ func LoadMRConfig() (MRConfig, error) { } text := string(f) lines := strings.Split(text, "\n") - config := MRConfig{} + config := MRConfig{ + Aliases: make(map[string]string), + Repos: []Repo{}, + } length := -1 mode := "default"