thoughtbot / appraisal

A Ruby library for testing your library against different versions of dependencies.
https://thoughtbot.com
MIT License
1.25k stars 107 forks source link

Cleaning up outdated lockfiles? #153

Closed mvz closed 4 years ago

mvz commented 5 years ago

The README suggests not checking in the lockfiles. This means that when you update your local repo with latest remote master, your appraisal gemfiles may be updated, but the lockfiles contain different, incompatible versions, causing an error during appraisal install, e.g.:

You have requested:
  nokogiri < 1.9.1

The bundle currently has nokogiri locked at 1.10.2.
Try running `bundle update nokogiri`

Is there any way to force appraisal to re-generate the lockfiles in such a case?

kbrock commented 5 years ago

@mrz I tend to brute force it

appraisal clean
appraisal generate
mvz commented 5 years ago

@kbrock thanks, I'll try that.

nickcharlton commented 4 years ago

As an alternative option, I typically do appraisal update to solve this.