Forest liana prevents the upgrade to Rails 8

Feature(s) impacted

Forest Liana

Observed behavior

Error when running bundle update rails after setting Rails version to 8.0.0.

Because forest_liana >= 1.0.5 depends on arel-helpers >= 0
  and arel-helpers >= 2.14.0 depends on activerecord >= 3.1.0, < 8,
  forest_liana >= 1.0.5 requires activerecord >= 3.1.0, < 8 or arel-helpers >= 0, < 2.14.0.
Thus, forest_liana >= 1.0.5 requires activerecord >= 3.0, < 8.
And because rails >= 8.0.0 depends on activerecord = 8.0.0,
  rails >= 8.0.0 is incompatible with forest_liana >= 1.0.5.
So, because Gemfile depends on forest_liana ~> 9.4.3
  and Gemfile depends on rails ~> 8.0.0,
  version solving has failed.

Expected behavior

Not to get the error.

Current forest_liana version: 9.4.3
Current Rails version: 7.2.2

Hello @jbescoyez

Thanks for reporting this issue! I was able to reproduce it on my end as well.
I’ve opened a ticket on our end to address this, and as soon as we have it sorted out, I’ll update you here with the details.

1 Like

Good news — the fix has been released in version 9.5.1, and you should now be able to onboard with Rails 8 without any issues! :tada:

Since you’ve been helping us out, I also wanted to let you know that our agent package is now available in a beta version 2! This beta brings several improvements, and we’d love for you to try it out and share any feedback. If you’re interested in migrating, here’s a link to the migration guide.

Thanks again for your patience, and let us know if there’s anything else we can help with!

Wow. What is the agent? Never heard of it? How is it different from forest_liana?

And, most important, where is the documentation? (since this is the part I struggled the most with so far)

To clarify, the Ruby agent v2 is a brand new package that replaces forest_liana. It introduces a new approach and offers more advanced features and flexibility to improve the integration experience. It’s designed to meet some of the limitations we encountered with forest_liana and provide a more powerful and customizable solution.

The full documentation for Ruby agent v2 will be available soon on our documentation portal.

here is the documentation: