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

Fix too deep options propagation during solidus install #295

Open
kennyadsl opened this issue Jan 5, 2023 · 0 comments
Open

Fix too deep options propagation during solidus install #295

kennyadsl opened this issue Jan 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kennyadsl
Copy link
Member

Running bin/sandbox we can see how solidus options are propagated to other gem installation as well. In the sandbox generation logs:

rails    generate rspec:install --auto-accept --auto-run-migrations

--auto-accept --auto-run-migrations should not be present.

@kennyadsl kennyadsl added the bug Something isn't working label Jan 5, 2023
kennyadsl added a commit to nebulab/solidus that referenced this issue Apr 14, 2023
By removing the override of the `generate` method in this
generator, we stop propagating those custom arguments to
all the inner generators called by the installer.

For example, at the moment, the installer is running

	rails    generate rspec:install --auto-accept --auto-run-migrations

see [1], which doesn't make sense and might also have
unexpected behaviors if we (or any dependency) run a generator
during their installation, which accepts those arguments.

Instead of always propaging these option, we are explicitely
declaring them when needed.

[1]: solidusio/solidus_starter_frontend#295

Co-authored-by: safafa <[email protected]>
kennyadsl added a commit to nebulab/solidus that referenced this issue Apr 14, 2023
By removing the override of the `generate` method in this
generator, we stop propagating those custom arguments to
all the inner generators called by the installer.

For example, at the moment, the installer is running

	rails    generate rspec:install --auto-accept --auto-run-migrations

see [1], which doesn't make sense and might also have
unexpected behaviors if we (or any dependency) run a generator
during their installation, which accepts those arguments.

Instead of always propaging these option, we are explicitely
declaring them when needed.

[1]: solidusio/solidus_starter_frontend#295

Co-authored-by: safafa <[email protected]>
kennyadsl added a commit to nebulab/solidus that referenced this issue Apr 14, 2023
By removing the override of the `generate` method in this
generator, we stop propagating those custom arguments to
all the inner generators called by the installer.

For example, at the moment, the installer is running

	rails    generate rspec:install --auto-accept --auto-run-migrations

see [1], which doesn't make sense and might also have
unexpected behaviors if we (or any dependency) run a generator
during their installation, which accepts those arguments.

Instead of always propaging these option, we are explicitely
declaring them when needed.

[1]: solidusio/solidus_starter_frontend#295

Co-authored-by: safafa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant