Skip to content

1.50: include directive's globs break when journal files are underneath a dotted directory #2498

@psagers

Description

@psagers

What I initially observed:

Success:

~> /usr/local/bin/hledger --version; /usr/local/bin/hledger check
hledger 1.43.2, linux-x86_64

Fail:

~> /usr/bin/hledger --version; /usr/bin/hledger check
hledger 1.50.3, linux-x86_64
hledger: Error: /home/[redacted]/.local/share/hledger/all.journal:1:1:
  |
1 | include global/*.journal
  | ^
No files were matched by glob pattern: global/*.journal

Old globs:

~> /usr/bin/hledger --version; /usr/bin/hledger check --old-glob
hledger 1.50.3, linux-x86_64

My journals are located under ~/.local, so this appears to be fallout from the exclusion of dotted directories from glob results. Presumably this change was only meant to prevent traversing dotted directories in the glob expansion, not to break any globs that happened to get evaluated entirely underneath a dotted directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.journalThe journal file format, and its features.regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions