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 42d0075d17
commit 8ced82fce2
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 {