Repository navigation
Commit ac17ede
authored
fix(build): order canaries by commit time, keep all-digit hashes intact (#3772)
Canaries were named `<version>-canary.<short sha>`, so npm ranked
them by hash: alphabetically, with all-digit hashes below the rest.
Naming them `<version>-canary.<UTC commit time>.sha-<short sha>`
ranks them by age. The time comes from the commit, so the weekday
scheduled rebuild of an unchanged main produces the same name.
`npm version` drops the leading zero of an all-digit identifier, so a
hash like 0123456 would publish as 123456. The `sha-` prefix keeps it
text.
Fixes #37711 parent a2662fe commit ac17ede
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments