Skip to Content.
Sympa Menu

devel - [sympa-developpers] Use Carton for Sympa?

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Luc Didry <address@concealed>
  • To: address@concealed
  • Subject: [sympa-developpers] Use Carton for Sympa?
  • Date: Thu, 17 May 2018 11:28:22 +0200

Hello,

I wanted to discuss about it during the hackathon, but why not talk
right now?

Carton (https://metacpan.org/pod/Carton) is a Perl module dependency
manager, allowing to install the exact versions of modules chosen by
the developers. The modules are installed in a `local` directory.

Pros:
- no more "What version of modules do you have" (if the installation
was properly made): just say what version of Sympa you have
- a problem is caused by a module, that have a fix in a new version
(or has not the problem in a previous version)? No pb, the devs have
just to install the right version and push the new cpanfile.lock
- you can create "features" like --without=oracle to not install the
dependencies for Oracle DB (https://metacpan.org/pod/cpanfile)

Cons:
- the scripts need to be launched with `carton exec ./script --
--options` (maybe there is some workaround, I don't know)
I usually create wrapper scripts to avoid such long command.

What do you think? Is it worth looking into?
--
Luc
"La route est longue, mais la voie est libre…" https://framasoft.org

Framasoft ne vit que par vos dons (déductibles des impôts). Merci d'avance
pour votre soutien https://soutenir.framasoft.org





Archive powered by MHonArc 2.6.19+.

Top of Page