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? -- Regards, Daniel Leidert <dleid...@debian.org> | https://www.wgdd.de/ GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78 If you like my work consider sponsoring me via https://www.patreon.com/join/dleidert
signature.asc
Description: This is a digitally signed message part