Skip to content

Move rdoc plugin permission fix into bootstrap ruby install step#192

Open
flavorjones wants to merge 1 commit intomainfrom
fix-rdoc-plugin
Open

Move rdoc plugin permission fix into bootstrap ruby install step#192
flavorjones wants to merge 1 commit intomainfrom
fix-rdoc-plugin

Conversation

@flavorjones
Copy link
Collaborator

@flavorjones flavorjones commented Feb 28, 2026

Summary

  • Move the gem plugin chmod g+w from a late-stage RUN layer into the bootstrap ruby install step, resolving the TODO added in Fix gem inst rdoc #188
  • Remove the separate RUN sudo chmod go+w ... plugins -R layer that was a temporary workaround

Closes #191

Note

This changes an early Docker layer, so it will invalidate the layer cache for all subsequent steps. Do not merge until we're ready for the next minor version release.

Test plan

  • Existing test_rdoc.rb passes (gem inst rdoc as mapped user succeeds)

Resolve the TODO from #188 by moving the gem plugin permission fixup
into the bootstrap ruby install RUN step, and remove the separate
late-stage RUN layer that was added as a temporary workaround.
@flavorjones
Copy link
Collaborator Author

Green, let's merge this before we ship v1.12.0

done && \
find ${RBENV_ROOT} -type d -print0 | sudo xargs -0 chmod g+w \
find ${RBENV_ROOT} -type d -print0 | sudo xargs -0 chmod g+w && \
find ${RBENV_ROOT} -path '*/plugins/*.rb' -print0 | sudo xargs -0 chmod g+w \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only difference is that the permission of the directory isn't adjusted. I think it's not necessary, but to be sure I added gem-wrapper per commit 2db60b4 to the tests. Just to make sure new rubygem plugins install without permission error.

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.

Permission denied on gem plugin files during bundle install (rdoc 6.9.0+)

2 participants