From 1c6946f971e6bf86ee6bf5cca49bb84c59541acd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 4 May 2021 21:58:39 -0700 Subject: [PATCH] cmd/mkpkg: allow zero files in a package. Signed-off-by: David Anderson --- cmd/mkpkg/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/mkpkg/main.go b/cmd/mkpkg/main.go index 4135d127e..07d3dc2ea 100644 --- a/cmd/mkpkg/main.go +++ b/cmd/mkpkg/main.go @@ -21,6 +21,9 @@ // into a map of filePathOnDisk -> filePathInPackage. func parseFiles(s string) (map[string]string, error) { ret := map[string]string{} + if len(s) == 0 { + return ret, nil + } for _, f := range strings.Split(s, ",") { fs := strings.Split(f, ":") if len(fs) != 2 {