Skip to content

Commit

Permalink
feat(local): don't install next-runtime from git (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd authored Mar 16, 2023
1 parent 6c02135 commit 5ea3159
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ impl Shuttle {

trace!(?path, "installing runtime from local filesystem");

// TODO: Add --features next here when https://github.com/shuttle-hq/shuttle/pull/688 is merged
std::process::Command::new("cargo")
.arg("install")
.arg("shuttle-runtime")
Expand All @@ -493,22 +492,16 @@ impl Shuttle {
.expect("failed to install the shuttle runtime");
} else {
// If the version of cargo-shuttle is different from shuttle-runtime,
// or it isn't installed, try to install shuttle-runtime from the production
// branch.
// or it isn't installed, try to install shuttle-runtime from crates.io.
if let Err(err) = check_version(&runtime_path) {
warn!("{}", err);

trace!("installing shuttle-runtime");
// TODO: Add --features next here when https://github.com/shuttle-hq/shuttle/pull/688 is merged
std::process::Command::new("cargo")
.arg("install")
.arg("shuttle-runtime")
.arg("--bin")
.arg("shuttle-next")
.arg("--git")
.arg("https://github.com/shuttle-hq/shuttle")
.arg("--branch")
.arg("production")
.arg("--features")
.arg("next")
.output()
Expand Down

0 comments on commit 5ea3159

Please sign in to comment.