From dcb6f68287761a1c8e0d0ac7a667da3dc8878201 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Tue, 26 Jan 2021 14:15:25 -0700 Subject: [PATCH] install: Add version envvar to `info --eval` output --- install/src/command.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/src/command.rs b/install/src/command.rs index 888e4e9b83..d59e63d7dd 100644 --- a/install/src/command.rs +++ b/install/src/command.rs @@ -584,6 +584,16 @@ pub fn info( "SOLANA_INSTALL_ACTIVE_RELEASE={}", &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::::None + }); return Ok(None); }