Skip to content

CARGO_PKG values should probably be in fingerprint, not metadata #6208

Closed
@ehuss

Description

@ehuss

Currently, "authors", "description", and "homepage" are included in the metadata hash. This is done because the corresponding CARGO_PKG environment variables might be included in the crate. I think these values should be in the fingerprint instead. It is a minor distinction, but the consequence is that changing any of these values will cause a recompile, but leave the old crates in the target directory, forever to be unused until the next cargo clean. If they were in the fingerprint, the recompile would overwrite the old files.

Also, the recently added "repository" was not included in the hash, but it should have.

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