install: Add version envvar to `info --eval` output

This commit is contained in:
Trent Nelson 2021-01-26 14:15:25 -07:00 committed by Michael Vines
parent 51dbc2785f
commit dcb6f68287
1 changed files with 10 additions and 0 deletions

View File

@ -584,6 +584,16 @@ pub fn info(
"SOLANA_INSTALL_ACTIVE_RELEASE={}", "SOLANA_INSTALL_ACTIVE_RELEASE={}",
&config.active_release_dir().to_str().unwrap_or("") &config.active_release_dir().to_str().unwrap_or("")
); );
config
.explicit_release
.map(|er| match er {
ExplicitRelease::Semver(semver) => semver,
ExplicitRelease::Channel(channel) => channel,
})
.and_then(|channel| {
println!("SOLANA_INSTALL_ACTIVE_CHANNEL={}", channel,);
Option::<String>::None
});
return Ok(None); return Ok(None);
} }