Skip to content

Should exclude --remap-path-prefix from cache key #2765

Open

Description

@dcolascione

Say I have a Rust project and I add a worktree. I want debuginfo to be valid across trees, so we normalize using --remap-path-prefix. sccache normalizes the source directory when basedirs is set, so we get a nice shared cache hit. Now, I add a new worktree. I have to go to all other worktrees and add the new worktree's base to the --remap-path-prefix set, which changes the cache key, blowing away cache that could otherwise be reused.

Shouldn't sccache normalize away --remap-path-prefix when it's congruent with one of the sccache base directories? Or better yet, add its own --remap-path-prefix so shared debuginfo Just Works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions