Skip to content

Include gem extension stubs in stdlib artifacts#9289

Merged
headius merged 1 commit intojruby:jruby-10.0from
headius:include_extension_stubs_in_stdlib
Mar 3, 2026
Merged

Include gem extension stubs in stdlib artifacts#9289
headius merged 1 commit intojruby:jruby-10.0from
headius:include_extension_stubs_in_stdlib

Conversation

@headius
Copy link
Member

@headius headius commented Mar 3, 2026

The extension stubs installed for JRuby versions of extension gems must be included in the stdlib, dist, and complete artifacts or those libraries will fail to load. This is the cause of issues mentioned in the Docker official-images PR here:

docker-library/official-images#20939 (comment)

The jruby-dist and jruby-complete artifacts get their stdlib content from the jruby-stdlib artifact, so including the files that artifact is necessary before including them in the other two. jruby-complete just packages the contents of jruby-stdlib as-is, but the jruby-dist artifact needs to filter and copy them back into their dist locations.

The extension stubs installed for JRuby versions of extension gems
must be included in the stdlib, dist, and complete artifacts or
those libraries will fail to load. This is the cause of issues
mentioned in the Docker official-images PR here:

docker-library/official-images#20939 (comment)

The jruby-dist and jruby-complete artifacts get their stdlib
content from the jruby-stdlib artifact, so including the files
that artifact is necessary before including them in the other two.
jruby-complete just packages the contents of jruby-stdlib as-is,
but the jruby-dist artifact needs to filter and copy them back into
their dist locations.
@headius headius added this to the JRuby 10.0.4.0 milestone Mar 3, 2026
@headius headius force-pushed the include_extension_stubs_in_stdlib branch 2 times, most recently from b41890d to 882317a Compare March 3, 2026 23:03
@headius headius force-pushed the include_extension_stubs_in_stdlib branch from dc30287 to d476378 Compare March 3, 2026 23:12
@headius headius merged commit 9af05b9 into jruby:jruby-10.0 Mar 3, 2026
128 of 157 checks passed
@headius headius deleted the include_extension_stubs_in_stdlib branch March 3, 2026 23:13
@headius
Copy link
Member Author

headius commented Mar 4, 2026

Dist verification was improved in #9290 to detect this situation in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant