What is the recommended erlang version for zotonic master?

Hello!

We’re running and old master version of zotonic (from 1 year ago) with erlang 25.
I want to upgrade zotonic and erlang versions, but with erlang 27 I have some compilations errors on qdate.erl and mochiweb_multipart.erl.
What is the recommended erlang version for zotonic master at the moment?

Cheers,

1 Like

Hi Alvaro,

Master should work fine with 27 and 28. Could you double check that you are on master and not on 0.x? Master should not have mochiweb related dependencies. For 0.x the maximum erlang version is 22.

Maas

2 Likes

Just to add to @mmzeeman’s response - this isn’t specific to Zotonic; it applies to any Erlang project that uses CI. You should check the repository’s GitHub CI configuration. For example, in Zotonic’s case: zotonic/.github/workflows/test.yml at master · zotonic/zotonic · GitHub - you’ll see it tests against Erlang/OTP versions 26, 27, and 28. It’s generally recommended to use the latest OTP version listed in the CI setup, as this helps maintainers identify potential issues early. However, if your project is specifically targeting OTP 26, then focusing on that version makes sense too.

1 Like

Hello Maas!

We use a fork of zotonic with some patches, probably we made an error while merging some of them. I’ll reapply those patches from Zotonic master.
Thanks for the information about the Erlang versions!

1 Like