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: plugin:install_all_gems Rake task not installing plugin gem #24522

Merged
merged 1 commit into from Nov 23, 2023

Conversation

tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Nov 23, 2023

Why this change?

This regressed in dec68d7 where the
commit assumes that plugin gems are always installed when the
plugin:install_all_gems Rake task is ran as it would run the our Rails
initializers which activates plugins and install the gems. However, this
assumption only holds true when the LOAD_PLUGINS env variable is present and set to
1.

What does this change do?

This commit changes the plugin:install_all_gems to load the Rails
environment with the LOAD_PLUGINS env variable set to 1 such that the plugin gems
will be installed as part of our initialization process for the app.

The commit also removes the plugin:install_gems Rake task which is
currently a noop and does not seem to be used anywhere.

Why this change?

This regressed in dec68d7 where the
commit assumes that plugin gems are always installed when the
`plugin:install_all_gems` Rake task is ran as it would run the our Rails
initializers which activates plugins and install the gems. However, this
assumption only holds true when the `LOAD_PLUGINS` is present and set to
`1`.

What does this change do?

This commit changes the `plugin:install_all_gems` to load the Rails
environment with `LOAD_PLUGINS` set to `1` such that the plugin gems
will be installed as part of our initialization process for the app.

The commit also removes the `plugin:install_gems` Rake task which is
currently a noop and does not seem to be used anywhere..
@tgxworld tgxworld merged commit 189aa5f into discourse:main Nov 23, 2023
16 checks passed
@tgxworld tgxworld deleted the fix_plugin_install_all_gems branch November 23, 2023 00:29
tgxworld added a commit to tgxworld/discourse that referenced this pull request Nov 23, 2023
…n gem (discourse#24522)"

This breaks the `plugin:install_all_gems` Rake task when used before
Redis is running. Need to go back to the drawing board.

This reverts commit 189aa5f.
tgxworld added a commit that referenced this pull request Nov 23, 2023
…n gem (#24522)" (#24524)

This breaks the `plugin:install_all_gems` Rake task when used before
Redis is running. Need to go back to the drawing board.

This reverts commit 189aa5f.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants