Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Handle the move of the enabled_plugins file #407

Closed
wants to merge 1 commit into from

Conversation

HoloRin
Copy link
Contributor

@HoloRin HoloRin commented Apr 16, 2020

We look for the enabled_plugins file at the deprecated location, and at the new location. If it exists only at the deprecated location, we attempt to use that file. If the deprecated location is read-only, we allow the cli command to fail (or not) as it always used to.

Part of the changes intended to address rabbitmq/rabbitmq-server#2234

@HoloRin
Copy link
Contributor Author

HoloRin commented Apr 16, 2020

I believe the travis build is failing because the broker needs to be running with the code from rabbitmq/rabbitmq-server#2298
However, I'm not aware of how to change that temporarily for the PR without affecting other things.

@michaelklishin
Copy link
Contributor

Yes, this is a fundamental limitation of Travis' "one project = one repository" philosophy.

We look for the enabled_plugins file at the deprecated location, and at the new location. If it exists only at the deprecated location, we attempt to use that file. If the deprecated location is read-only, we allow the cli command to fail (or not) as it always used to.

Part of the changes intended to address rabbitmq/rabbitmq-server#2234
@HoloRin HoloRin force-pushed the enabled_plugins_file branch from f75e820 to 206f1dc Compare April 17, 2020 09:37
{:ok, Path.join([rabbitmq_base, "enabled_plugins"])}
end
file ->
{:ok, file}
Copy link
Contributor

Choose a reason for hiding this comment

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

The duplication of the logic between rabbitmq-server and this repository makes me think more and more there is something wrong with that file, but at a deeper level. Otherwise the patches solve the immediate issue.

@dcorbacho dcorbacho closed this Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants