cargo-travis
cargo-travis copied to clipboard
Build Fails for Missing File Panic
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.
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
@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.