install: Add version envvar to info --eval output

(cherry picked from commit dcb6f68287)
This commit is contained in:
Trent Nelson
2021-01-26 14:15:25 -07:00
committed by Michael Vines
parent c5cfbee853
commit 10e12d14e1

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);
} }