Skip to content

Commit db0055f

Browse files
facchinmcmaglie
authored andcommitted
Don't try to absolutize the filepath if empty
On Windows, it fails with the rather cryptic error message "The filename, directory name, or volume label syntax is incorrect"
1 parent 253195c commit db0055f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ func SliceToMapStringBool(keys []string, value bool) map[string]bool {
293293

294294
func AbsolutizePaths(files []string) ([]string, error) {
295295
for idx, file := range files {
296+
if file == "" {
297+
continue
298+
}
296299
absFile, err := filepath.Abs(file)
297300
if err != nil {
298301
return nil, i18n.WrapError(err)

0 commit comments

Comments
 (0)