New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to 9.2.10.0 breaks project using asciidoctor-maven-plugin #6082
Comments
IF it is a change in JRuby, it might happen after |
This sounds like could be related to the rubygems upgrade? If you downgrade rubygems with |
I'm not using gems directly, only via maven build. |
Oh, I see. Thanks for the information and also for the bisecting to the snapshot level, which seems to closely point to the rubygems upgrade. |
Drat... we did have a couple minor issues with RubyGems loading gem specifications out of a jar, but I didn't think it would affect any real-world code. We will look at getting this fixed, but it may require upstreaming changes to RubyGems proper. |
Can you provide a small repository or example that we could use to reproduce this issue locally? Ideally it would be something we can turn into a CI smoke test so this doesn't break again. |
See #6060 for the issue we found while upgrading RubyGems. |
|
Dir.glob was treating any passed-in `base` path as a normal file path, which cause it to treat URIs as a relative path. The logic then proceeded to prepend the cwd to this URI, producing a nonsense path. This patch uses File.expand_path logic to acquire the base path, which keeps it a URI and allows the rest of glob to handle it as if the glob and base were expanded before calling Dir.glob. The change means that the two following Dir.glob calls work the same, fixing the issues discovered in jruby#6060. It will very likely also fix the issues reported in jruby#6082 and jruby#6083. Fixes jruby#6060 Fixes jruby#6082 Fixes jruby#6083
I have pushed a likely fix in #6084. Will test locally, but if you can try a HEAD build from the |
Will try on first chance and share my results. |
What do I do with that repo to reproduce? I tried |
Oh nevermind, I see the repo had 9.2.9.0 configured. Changing to 9.2.10.0 shows the error and 9.2.11.0-SNAPSHOT works correctly. |
There is also branch dependabot/maven/org.jruby-jruby-complete-9.2.10.0 with JRuby upgraded and failure attached. |
Environment Information
Provide at least:
jruby -v
) and command line (flags, JRUBY_OPTS, etc): 9.2.10.0, mavenuname -a
): LinuxOther relevant info you may wish to add:
Expected Behavior
Smooth upgrade from JRuby 9.2.9.0 to 9.2.10.0.
Actual Behavior
Not 100% sure if this is JRuby's fault, but project worked with 9.2.9.0, and only change being upgrade to 9.2.10.0 causes this:
with plugin configured like this
The text was updated successfully, but these errors were encountered: