Skip to content
Discussion options

You must be logged in to vote

Thanks for the very thorough report — the directory listing and the Previous json found log line you included pinpointed this exactly.

Confirmed it's a regression. detector.ListValidJSONDirs is supposed to return result directories newest-first (its doc comment says so, and loadPrevious skips dirs[0] as the current scan and takes dirs[1] as the previous one). In #2415 (Go 1.26 bump) the original descending sort.Slice was modernized to slices.Sort, which sorts ascending — so dirs[0] became the oldest directory and dirs[1] became the second-oldest. That's why your diff always compared against 2026-04-25T08-27-25+0000.

Opened a fix in #2555 that:

  • Restores descending sort (matching the sibling

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MrFlibble007
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants