File: glob-sort.patch

package info (click to toggle)
node-tape 5.6.1%2B~cs8.20.19-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: javascript: 7,443; makefile: 12; sh: 1
file content (16 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: glob >= 7 no longer sorts
Author: Jérémy Lal <kapouer@melix.org>
Forwarded: not-needed, upstream knows that already
Last-Update: 2025-11-23

--- a/bin/tape
+++ b/bin/tape
@@ -60,7 +60,7 @@
 			throw new TypeError('unknown error: glob.sync("' + arg + '") did not return an array or throw. Please report this.');
 		}
 
-		return result.concat(globFiles);
+		return result.concat(globFiles.sort((a, b) => a.localeCompare(b)));
 	}
 	return result.concat(arg);
 }, []).filter(function (file) {