warbler icon indicating copy to clipboard operation
warbler copied to clipboard

Fix bug with gem_excludes not being used on bundler gems

Open fzakaria opened this issue 5 years ago • 4 comments

This is an upstream commit authored by @stalbot.

Unclear why in the original code exclude_gems was set to false if any files were found in the Git gem. It caused the condition to check for config.gem_excludes to not trigger.

(Looks like gem_excludes will not work neither when spec.source is ::Bundler::Source::Path)

Co-authored-by: Steven Talbot [email protected]

fzakaria avatar Jan 28 '20 18:01 fzakaria

Would a test be needed for this change ? I'd like to make sure it gets merged.

fzakaria avatar Feb 05 '20 02:02 fzakaria

The Travis failures are not related to the change:

Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    jbundler (~> 0.9) java was resolved to 0.9.3, which depends on
      bundler (~> 1.5) java
  Current Bundler version:
    bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

fzakaria avatar Feb 05 '20 02:02 fzakaria

yes, please possibly add a test regardless of CI

kares avatar Feb 09 '20 20:02 kares

The unit tests are more complicated -- this might take me a little bit. I've never heard of DRB :)

What's the state of Warbler ? Is it still the recommended approach by JRuby to build a JAR?

I'm curious due to the state of the CI.

fzakaria avatar Feb 11 '20 03:02 fzakaria