Skip to content
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

Bundle install during hanami install #269

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

timriley
Copy link
Member

@timriley timriley commented Nov 13, 2024

This will ensure that gems added to the Gemfile by our first-party extensions (hanami-cli) are installed during hanami new, rather than requiring the user to run their own manual bundle install afterwards.

This requires the first-party extension gems to use a before "install" command hook, instead of the current after "install".

See also hanami/rspec#30

Fixes #265

This, in combination with our first-party gems (like hanami-rspec) updating their `after "install"` command hooks to become `before "install"`, will ensure that gems added to the Gemfile are installed as part of the initial `hanami new` command, rather than another manual `bundle install` being required afterwards.
@timriley timriley added this to the v2.2.1 milestone Nov 13, 2024
@timriley timriley force-pushed the bundle-install-during-hanami-install branch from efe0b25 to 23b9c4e Compare November 13, 2024 04:27
@timriley timriley merged commit 8a91c8d into main Nov 13, 2024
6 checks passed
@timriley timriley deleted the bundle-install-during-hanami-install branch November 13, 2024 04:35
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.

Run bundle install after all hooks
1 participant