Skip to content

When a tag is specified in Cargo.toml, a second build panics in utils at is_fresh() #1069

@CraZySacX

Description

@CraZySacX

I referenced a tag in Cargo.toml, ran cargo build and it grabbed the correct version and completed successfully. Made some changes, ran cargo build again and received

task '<main>' panicked at 'assertion failed: checkout.is_fresh()', src/cargo/sources/git/utils.rs:206

I think the problem is calling git rev-parse HEAD on a detached head returns HEAD instead of the name of the revision and is causing the match in is_fresh() to return false

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