Skip to content

Executing git rev-parse master failed #553

Closed

Description

cargo build -u --verbose results in this error on the following step:

   Compiling graphics v0.0.0 (https://github.com/pistondevelopers/rust-graphics)
Executing `git rev-parse master` failed

Caused by:
  Executing `git rev-parse master` failed

Caused by:
  Could not execute process `git rev-parse master` (status=never executed)

Caused by:
  no such file or directory

I have also opened an issue for cargo: rust-lang/cargo#84

Activity

  1. bvssvni commented on Jun 28, 2014

    @bvssvni
    Member

    Error checklist:

    • appears with latest Rust nightly
    • appears with latest Cargo
    • appears on more than one machine
  2. madjar commented on Jun 28, 2014

    @madjar

    @bvssvni I had the same error last night, and I worked around it by making cargo display the name of the directory it tried to find and symlinking it to the right value.

  3. madjar commented on Jun 28, 2014

    @madjar

    First, I patched cargo to display the value of self.path there: https://github.com/rust-lang/cargo/blob/master/src/cargo/sources/git/utils.rs#L208

    Then I ran cargo-build, it gave me the value of the missing directory. It is of the form ~/.cargo/git/db/graphics-<something>, where <something> is an hexadecimal value. This directory doesn't exist, but one with another hex value exists, so I created a symlink to the existing one. Cargo stopped complaining.

    I don't konw what that hex value means, but it looks like it's not computed correctly in Cargo.

  4. ghost closed this as completedon Jun 29, 2014
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