Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: include path to rad binary in rad-debug
Lars Wirzenius committed 2 years ago
commit 5fce714ba55892702069e6df36666baf14c751a3
parent 5ae617abf096d31181496e6b5b048e81872c462f
1 file changed +6 -0
modified radicle-cli/src/commands/debug.rs
@@ -68,6 +68,11 @@ fn debug(profile: &Profile) -> anyhow::Result<()> {
    }));

    let debug = DebugInfo {
+
        rad_exe: if let Ok(filename) = std::fs::read_link("/proc/self/exe") {
+
            Some(filename)
+
        } else {
+
            None
+
        },
        rad_version: VERSION,
        radicle_node_version: stdout_of("radicle-node", &["--version"])
            .unwrap_or("<unknown>".into()),
@@ -92,6 +97,7 @@ fn debug(profile: &Profile) -> anyhow::Result<()> {
#[allow(dead_code)]
#[serde(rename_all = "camelCase")]
struct DebugInfo {
+
    rad_exe: Option<PathBuf>,
    rad_version: &'static str,
    radicle_node_version: String,
    git_remote_rad_version: String,