Skip to content

Cache: hash should based on patch content instead of patch file path #703

Open

Description

@zhykzhykzhyk

Hash is currently generated by the arguments, which contains patch file path, which leads to following problems:

  1. Incorrect source when patch file got updated
  2. Duplicated when working under multiple work trees.

Activity

  1. zhykzhykzhyk commented on Jul 30, 2026

    @zhykzhykzhyk
    Author

    It seems #664 can solve 1, but not 2.

  2. Lectem commented on Sep 28, 2026

    @Lectem

    I just hit the same issue which bloated my cache. I think using content hash instead of path hash is the correct fix.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions