Carton...rading(3pm)
π Carton::Doc::Upgrading π
okay bestie, gather round, because this is the Upgrading document for Carton::Doc::Upgrading and it's literally the glow-up guide you need. it's from the User Contributed Perl Documentation, and no cap, you're gonna want to read this before you yolo an upgrade πΈ
β¨ UPGRADING β¨
so here's the tea π«: Carton is that friend who adds, changes, and deprecates features between major releases, and sometimes it does it in ways that are backward incompatible. rude? maybe. iconic? also yes π
below is the list of the major changes between versions. if you want the full receipts, go peek at the "Changes" file, it's giving thorough π
π¦ v0.9 to v1.0 π¦
this is the big one, the main character era of upgrades:
"carton exec -Ilib"is deprecated β it's lowkey over, bestie π you have to pass the optional include path to the perl interpreter the normal way, like this:
carton exec perl -Ilib myscript
or, alternatively, make your script take its own "-I" option, just like so many command line launchers already do (think plackup, prove, the whole squad):
carton exec plackup -Ilib myapp.psgi
"carton.lock"is now"cpanfile.snapshot"β not just a rename, the name and the file format changed. there is no automatic migration, so no magic wand πͺ but you can do this manually:
# run with Carton v0.9.64
> carton install
# upgrade to Carton v1.0
> cpanm Carton
> carton install
> git add cpanfile.snapshot
> git rm carton.lock
and the good news? this process will most likely preserve the modules in your local library π
cpanfileis now a requirement β periodt, it's mandatory now. and extracting requirements from build files ("Makefile.PL","Build.PL") is not supported anymore. sorry babes, that ship has sailed β΅
β οΈ heads up: the deprecations and the unsupported stuff above are for real. don't skip the migration steps and then act surprised, i'm begging π
perl v5.34.0 π 2022-05-12 π and that's the Carton...rading(3pm) page, sourced from the User Contributed Perl Documentation. go forth and upgrade responsibly, you've got this πβ¨
π¦ where this page comes from
- debian bookworm: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: carton 1.0.35-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms