浏览代码

fix(bundler): use BUNDLE_JOBS in `bi` to avoid config file change

When calling `bundle install` with `--jobs=<n>`, bundle persists this
argument in `.bundle/config`. If we run `BUNDLE_JOBS=<n> bundle install`
instead, this is not persisted.

Fixes #10425
Marc Cornellà 2 年之前
父节点
当前提交
98b4801548
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/bundler/bundler.plugin.zsh

+ 1 - 1
plugins/bundler/bundler.plugin.zsh

@@ -40,7 +40,7 @@ bundle_install() {
   else
     local cores_num="$(nproc)"
   fi
-  bundle install --jobs="$cores_num" "$@"
+  BUNDLE_JOBS="$cores_num" bundle install "$@"
 }
 
 ## Gem wrapper