hab-cli will always attempt to install/use latest launcher
The Launcher is versioned separately than the supervisor and cli
and follows a different versioning pattern. The latest version of
the launcher should always be used if possible
@@ -42,19 +42,16 @@ mod inner {
use super::{LAUNCH_CMD, LAUNCH_CMD_ENVVAR, LAUNCH_PKG_IDENT};
use error::{Error, Result};
use exec;
- use VERSION;
pub fn start(ui: &mut UI, args: Vec<OsString>) -> Result<()> {
let command = match henv::var(LAUNCH_CMD_ENVVAR) {
Ok(command) => PathBuf::from(command),
Err(_) => {
init();
- let version: Vec<&str> = VERSION.split("/").collect();
- let cmd =
- exec::command_from_min_pkg(
+ let cmd = exec::command_from_min_pkg(
ui,
LAUNCH_CMD,
- &PackageIdent::from_str(&format!("{}/{}", LAUNCH_PKG_IDENT, version[0]))?,
+ &PackageIdent::from_str(LAUNCH_PKG_IDENT)?,
&default_cache_key_path(None),
0,
)?;
