Cargo stops downloading dependencies via git today


#1

Today I pushed some changes to both my repositories, where one depend on an other, and got a mail from travis-ci because of failed build:

$ cargo build --verbose
    Updating git repository `https://github.com/RazrFalcon/libsvgdom.git`
error: failed to load source for a dependency on `svgdom`
Caused by:
  Unable to update https://github.com/RazrFalcon/libsvgdom.git
Caused by:
  Could not find `Cargo.toml` in `/home/travis/.cargo/git/checkouts/libsvgdom-a2eb2848e646b406/svgdom`

Build on the local machine is also became broken. As far as I remember it was build successfully before pushing.

Here is the main project (svgdom’s repo link is above). Also here is the travis log (I hope it’s public).

As you can see I’m using the git version of the svgdom and didn’t changed Cargo.toml for a month.

My only ideas is that there are: a bug in cargo, somehow broken repo on github (or any kind of github problem) or problem with svgdom's Cargo.toml, which I changed today.

Also, project name is svgdom, but repo name is libsvgdom. But it worked fine for months.


#2

Looks like a bug with paths:

% cargo build                                   
    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/RazrFalcon/libsvgdom.git`
error: failed to load source for a dependency on `svgdom`

Caused by:
  Unable to update https://github.com/RazrFalcon/libsvgdom.git

Caused by:
  Could not find `Cargo.toml` in `/home/razr/.cargo/git/checkouts/libsvgdom-a2eb2848e646b406/svgdom`

But actual path is: /home/razr/.cargo/git/checkouts/libsvgdom-a2eb2848e646b406/1b1c6e1092dc073f52b599147dafd7ddf9472375/Cargo.toml


#3

Fixed: https://github.com/rust-lang/cargo/issues/3498