fix(cli): list the files a glob matches sorted by path #301
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!301
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/glob-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
resolveGlobreturned a glob's matches in the order the crawl met them, which follows the directory's own order and differs from one filesystem to another (hash order on ext4). Every command over**/*.gram(check,build,shop,format,suggest,db sync) therefore listed its files in a machine-dependent order. Found while #300's CI failed on a test that relied on that order.What changes
Checks
bun test: 3959 pass, 1 skip, 0 fail.tests/glob.test.tsfails without the sort: 40 files written in a scrambled order, and the order of the patterns.glob.tsis identical ondev/1.6, so mergingmainintodev/1.6afterwards is clean.