Skip to content

Commit 3f70085

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 986e9fd commit 3f70085

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: utils/utils.go

+3
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)