Skip to content

Workspace root Cargo.toml not counted in cache key if it is not a package #268

Description

@Charlie-XIAO

If the root Cargo.toml does not correspond to a package (i.e., it is a virtual root), it seems that this file won't be counted into the computation of the cache key.

rust-cache/src/config.ts

Lines 155 to 157 in a1f9490

const workspaceMembers = await workspace.getWorkspaceMembers();
const cargo_manifests = sort_and_uniq(workspaceMembers.map((member) => path.join(member.path, "Cargo.toml")));

Hence changing [profile.dev] in the root Cargo.toml seems to give a full match which is problematic.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions