We’re using gems:unpack to ensure gem version consistency across environments. However, we’re running into:
can't activate , already activated [GEM-VERSION]
Is this because installed gems take precedence over frozen ones? Is it possible to have frozen gems activate first? Advice on ways to keep gems consistent welcome.
This usually happens when a gem/plugin you have packed requires a gem then a second gem/plugin requires a specific version of the same gem. The first gem requires the dependency, but when the second gem requires the specified version of the same gem then you will see the error you describe.
For example:
And you have the following:
Then the
some_gemwill require 2.0, but whenanother_gemrequires 1.0 you get the error.