ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Bugfix/version pin multi test gem #141

Closed kdnilsson closed 2 years ago

kdnilsson commented 2 years ago

On May the 5:th an updated version of the gem multi_test (version 1.0.0) was released and broke our builds of monitor-livestatus and monitor-merlin. See https://github.com/cucumber/multi_test/issues/26 .

Both of these repos use an older version of cucumber then the rest of our repos. So we should update to use the same version across all repos. But before we do that we thought that we should do a quick fix and just version pin the gem to the previous version.

Unfortunately it did not work just to pin a specific version of the multi_test gem. The gem is a run time dependency of cucumber and when installing multi_test:0.1.2 before installing cucumber did not make any difference. Installation of cucumber always lead to the installation of the latest multi_test gem, version 1.0.0. According documentation it should be possible to install with --conservative or --minimal-deps which should not attempt to upgrade/don't upgrade gems already meeting version requirements. But nor: gem install multi_test:0.1.2; gem install --conservative cucumber:1.3.8 or gem install multi_test:0.1.2; gem install --minimal-deps cucumber:1.3.8 worked.

So we ended up with a rather ugly hack of first installing the version of multi_test we wanted, then installing cucumber and then un-installing the unwanted multi_test version.