Improve archive package user experience (#927)

This commit is contained in:
Vishal
2018-11-29 23:00:38 +08:00
committed by Ta-Ching Chen
parent 7cedf8d580
commit 19b52938c3
10 changed files with 235 additions and 110 deletions
+1 -2
View File
@@ -149,12 +149,11 @@ func MakeArchive(targetName string, globs ...string) (string, error) {
for _, glob := range globs {
f, err := filepath.Glob(glob)
if err != nil {
log.Info(fmt.Sprintf("Invalid glob %v: %v", glob, err))
log.Warn(fmt.Sprintf("Invalid glob %v: %v", glob, err))
return "", err
}
files = append(files, f...)
}
// zip up the file list
err := archiver.Zip.Make(targetName, files)
if err != nil {