Skip to content

Require commonmarker explicitly for host apps#39

Merged
HamptonMakes merged 1 commit intomainfrom
hampton/require-commonmarker
Mar 3, 2026
Merged

Require commonmarker explicitly for host apps#39
HamptonMakes merged 1 commit intomainfrom
hampton/require-commonmarker

Conversation

@HamptonMakes
Copy link
Collaborator

Host apps that mount the coplan engine via gem 'coplan', github: 'block/coplan', glob: 'engine/*.gemspec' get commonmarker installed (it's in the gemspec) but not auto-required — Bundler.require only requires gems listed directly in the host's Gemfile, not transitive dependencies.

The standalone coplan app masked this because it lists gem 'commonmarker' directly in its Gemfile. Host apps like coplan-square hit NameError: uninitialized constant CoPlan::MarkdownHelper::Commonmarker on any page that renders markdown.

Fix: require commonmarker in lib/coplan.rb so the engine loads its own dependency.

@HamptonMakes HamptonMakes merged commit 04115fe into main Mar 3, 2026
4 checks passed
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