ファイルを変更した後もまだ binstubs を取得している場合は$HOME/users/.bundle/config
、どこかに別の構成がある可能性が高くなります。次のコマンドを実行する場所を把握するために
$ bundle config
Settings are listed in order of priority. The top value will be used.
gem.coc
Set for the current user (/Users/username/.bundle/config): "true"
gem.mit
Set for the current user (/Users/username/.bundle/config): "true"
gem.test
Set for the current user (/Users/username/.bundle/config): "rspec"
build.libv8
Set for the current user (/Users/username/.bundle/config): "--without-system-v8"
disable_multisource
Set for the current user (/Users/username/.bundle/config): "true"
bin
Set for your local app (/Users/username/apps/ruby/rails_application/.bundle/config): "bin"
Set for the current user (/Users/username/.bundle/config): "false"
あなたが探しているのはbin
情報です。この情報は、構成情報を含むファイルへのパスを提供します。これを修正するためにできることは、構成ファイルに移動して、それを示す行を削除するBUNDLE_BIN: bin
か、bundle bin を false に変更することですBUNDLE_BIN: 'false'
vi /Users/username/apps/ruby/rails_application/.bundle/config
再度実行するbundle config
と、bin 構成が表示されないか、false に設定されていることがわかります。この例では、私のものを false に設定しているので、この新しい結果が得られます。
bin
Set for your local app (/Users/username/apps/ruby/gscs_ci/.bundle/config): "false"
Set for the current user (/Users/username/.bundle/config): "false"
ただし、バンドルに応答する各 Ruby アプリケーションは、独自のカスタム .bundle/config を持つことができます。
すべてを更新する.bundle/config
と、Rubybundle
またはbundle install
false がディレクトリであると思われる場合があるため、BUNDLE_BIN
より単純な行を削除する方がよい場合があります。