cargo-travis icon indicating copy to clipboard operation
cargo-travis copied to clipboard

Build Fails for Missing File Panic

Open lucasbrendel opened this issue 5 years ago • 2 comments

I have been having issues with multiple repos on my projects failing for the following error

Cloning into 'target/doc-upload'...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1165:5
note: r

I have the GH_TOKEN. Even with filling in all env vars locally i get the same error. Not sure where the error is occurring.

lucasbrendel avatar Sep 15 '19 03:09 lucasbrendel

Ah, yeah, I was just seeing this myself. Thoughts here would be much appreciated. I assume it's the same problem for both of us so here's a link to my repo and configuration:

https://github.com/martinmroz/iata_bcbp

martinmroz avatar Oct 28 '19 04:10 martinmroz

@lucasbrendel Looks like this was actually fixed on master, however the Cargo.toml was never bumped to match (https://github.com/roblabla/cargo-travis/issues/67). You can work around this one of two ways, either change your before_script to:

- cargo install --git https://github.com/roblabla/cargo-travis || echo "cargo-travis already installed"

Or, specify a --path $TRAVIS_BRANCH argument to doc-upload.

Note that the former is going to drastically increase your build times.

martinmroz avatar Jun 15 '20 01:06 martinmroz