Hi there,
there is something weird going on with bundler and I suspect a bug. Consider
this part of a Gemfile for a jekyll site:
install_if -> { RUBY_PLATFORM =~ /mingw|mswin|java/ } do
gem "wdm", "~> 0.1.0"
end
It ckearly states that the "wdm" gem is not required on my Debian linux. And
when I run `jekyll b` it is fine. Now if I add some gems here:
install_if -> { RUBY_PLATFORM =~ /mingw|mswin|java/ } do
gem "wdm", "~> 0.1.0"
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
and run `jekyll b` again there is a complaint:
/usr/lib/ruby/2.7.0/bundler/resolver.rb:290:in `block in
verify_gemfile_dependencies_are_found!': Could not find gem 'wdm (~> 0.1.0)' in
any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)
Why is that? The gems shouldn't be required at all and bundler should not
behave differently if one or more gems are listed in the block, no?