Skip to content

1.32: hledger import of multiple files corrupts .latest files #2125

Description

@simonmichael

In 1.32, hledger import FILE1 FILE2 ... seems to write all files' new transaction dates to all of the .latest* files. These are what import uses to remember which transactions it has already processed, so corrupting them will likely disrupt subsequent imports.

I consider this is a fairly serious regression, because it could be tedious to recover from if you do a lot of importing. Please avoid importing from multiple files at once with hledger-1.32; this will be fixed by 1.32.1.

Importing from one file at a time is safe (but it won't interleave transactions by date). Eg:

bad: hledger import a.csv b.csv
good: hledger import a.csv; hledger import b.csv

Activity

  1. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    regressionA backwards step, indicating a weakness in our QA. We don't like these.
    on Dec 7, 2023
  2. changed the title [-]hledger-1.32 import with multiple input files corrupts the .latest files, forgetting import state[/-] [+]hledger-1.32 import with multiple input files corrupts the .latest files[/+] on Dec 7, 2023
  3. changed the title [-]hledger-1.32 import with multiple input files corrupts the .latest files[/-] [+]hledger-1.32 import corrupts .latest files[/+] on Dec 7, 2023
  4. simonmichael commented on Dec 7, 2023

    @simonmichael
    MemberAuthor

    Fixed by 1.32.1.

  5. changed the title [-]hledger-1.32 import corrupts .latest files[/-] [+]1.32: hledger-1.32 corrupts `.latest` files[/+] on Dec 16, 2023
  6. changed the title [-]1.32: hledger-1.32 corrupts `.latest` files[/-] [+]1.32: hledger import corrupts `.latest` files[/+] on Dec 16, 2023
  7. changed the title [-]1.32: hledger import corrupts `.latest` files[/-] [+]1.32: hledger import of multiple files at once corrupts `.latest` files[/+] on Aug 25, 2025
  8. changed the title [-]1.32: hledger import of multiple files at once corrupts `.latest` files[/-] [+]1.32: hledger import of multiple files corrupts `.latest` files[/+] on Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.importregressionA backwards step, indicating a weakness in our QA. We don't like these.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions