From ebb0c5a6d88e909d0cff103a20aaeda1cd898227 Mon Sep 17 00:00:00 2001 From: Julien ITARD Date: Tue, 6 Dec 2022 20:13:07 +0100 Subject: [PATCH] Fix RubyGems step (#251) * Bump tokio from 1.5.1 to 1.8.4 (#245) Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.5.1 to 1.8.4. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.5.1...tokio-1.8.4) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix RubyGems step * Fix style Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/steps/generic.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index a24cd167..7abf6c9d 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -89,17 +89,7 @@ pub fn run_rubygems(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> { print_separator("RubyGems"); - let mut command = run_type.execute(gem); - command.args(["update", "--system"]); - - if env::var_os("RBENV_SHELL").is_none() { - debug!("Did not detect rbenv. Adding --user-install"); - command.arg("--user-install"); - } else { - debug!("Detected rbenv. Avoiding --user-install"); - } - - command.status_checked() + run_type.execute(gem).args(["update", "--system"]).status_checked() } pub fn run_haxelib_update(ctx: &ExecutionContext) -> Result<()> {