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] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix RubyGems step * Fix style Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -89,17 +89,7 @@ pub fn run_rubygems(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
|
|||||||
|
|
||||||
print_separator("RubyGems");
|
print_separator("RubyGems");
|
||||||
|
|
||||||
let mut command = run_type.execute(gem);
|
run_type.execute(gem).args(["update", "--system"]).status_checked()
|
||||||
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()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_haxelib_update(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_haxelib_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user