mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
9118cb242b
commit
a29ead52e1
2 changed files with 24 additions and 0 deletions
|
@ -156,6 +156,8 @@ module Bundler
|
||||||
"Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}"
|
"Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).#{" Bundler will remember this value for future installs on this machine" unless Bundler.feature_flag.forget_cli_options?}"
|
||||||
map "c" => "check"
|
map "c" => "check"
|
||||||
def check
|
def check
|
||||||
|
remembered_flag_deprecation("path")
|
||||||
|
|
||||||
require_relative "cli/check"
|
require_relative "cli/check"
|
||||||
Check.new(options).run
|
Check.new(options).run
|
||||||
end
|
end
|
||||||
|
|
|
@ -95,6 +95,28 @@ RSpec.describe "major deprecations" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "bundle check --path" do
|
||||||
|
before do
|
||||||
|
install_gemfile <<-G
|
||||||
|
source "#{file_uri_for(gem_repo1)}"
|
||||||
|
gem "rack"
|
||||||
|
G
|
||||||
|
|
||||||
|
bundle "check --path vendor/bundle"
|
||||||
|
end
|
||||||
|
|
||||||
|
it "should print a deprecation warning", :bundler => "2" do
|
||||||
|
expect(deprecations).to include(
|
||||||
|
"The `--path` flag is deprecated because it relies on being " \
|
||||||
|
"remembered accross bundler invokations, which bundler will no " \
|
||||||
|
"longer do in future versions. Instead please use `bundle config set " \
|
||||||
|
"path 'vendor/bundle'`, and stop using this flag"
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
pending "should fail with a helpful error", :bundler => "3"
|
||||||
|
end
|
||||||
|
|
||||||
describe "bundle config" do
|
describe "bundle config" do
|
||||||
describe "old list interface" do
|
describe "old list interface" do
|
||||||
before do
|
before do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue