Cargo error: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()'
kaiwk opened this issue · comments
In any Rust project with Cargo.toml
:
[package]
name = "foobar"
version = "0.1.0"
authors = ["Foo Bar <foobar@anymail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
flame = { git = "ssh://git@github.com/llogiq/flame" }
run $ RUST_BACKTRACE=full cargo instruments run -t alloc --bin foobar
, gives error below:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', /Users/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.42.0/src/cargo/util/canonical_url.rs:42:13
stack backtrace:
0: 0x10332abef - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h15e9d43c311e2e8b
1: 0x103356afe - core::fmt::write::h26bd57c1fd6e9c98
2: 0x103324cc7 - std::io::Write::write_fmt::hec39d9b928a7dd96
3: 0x10332e4fa - std::panicking::default_hook::{{closure}}::h0f5acc2c9ebbd23b
4: 0x10332e23c - std::panicking::default_hook::heb20615097dfd012
5: 0x10332eabe - std::panicking::rust_panic_with_hook::hfa6e15127794f7f1
6: 0x10332e692 - rust_begin_unwind
7: 0x1033aaa6f - core::panicking::panic_fmt::hab6ef1464e9720aa
8: 0x1033aa975 - core::result::unwrap_failed::hb5a510096a5fc85f
9: 0x102e6a0f9 - cargo::util::canonical_url::CanonicalUrl::new::h0ab27e391853a09f
10: 0x102f9d342 - cargo::core::source::source_id::SourceId::new::h9b227cb292ddc016
11: 0x102efa4f3 - cargo::util::toml::DetailedTomlDependency::to_dependency::hc77db343f6fde475
12: 0x102ef9362 - cargo::util::toml::TomlDependency::to_dependency::hfe28f05777afe0be
13: 0x102ef778a - cargo::util::toml::TomlManifest::to_real_manifest::process_dependencies::hb19df712d0e950f9
14: 0x102ef371a - cargo::util::toml::TomlManifest::to_real_manifest::hc31eeb64c8ab11fe
15: 0x102eed31d - cargo::util::toml::read_manifest::h5972f1049e4c6e0d
16: 0x1030bfb64 - cargo::core::workspace::Packages::load::ha076f78ca943bea8
17: 0x1030bbb08 - cargo::core::workspace::Workspace::find_root::hd2ebfb5d65327e20
18: 0x1030b9367 - cargo::core::workspace::Workspace::new::h0fbdf1a6e80effd3
19: 0x102d7e97e - cargo_instruments::app::run::h67fa75ce7d3353ba
20: 0x102d6f223 - cargo_instruments::main::h326b607d3eec3c1b
21: 0x102d6a5f6 - std::rt::lang_start::{{closure}}::h863cb5381b98991b
22: 0x10332ee69 - std::rt::lang_start_internal::h2d2d7c5f224149f7
23: 0x102d6f2f9 - main
Looks like Cargo
failed to parse flame = { git = "ssh://git@github.com/llogiq/flame" }