Module:...thority(3)
π Module::Install::Authority β the page from the User Contributed Perl Documentation manual β¨
okay bestie, sit down, we're doing Module::Install::Authority and it's genuinely such a slay π«Ά it's the little plugin that adds an x_authority key to your META.yml, and it fixes a whole class of permission drama that used to ruin people's entire weeks. no cap.
πΈ NAME πΈ
Module::Install::Authority</purl> β adds an x_authority key to META.yml. that's the whole job, and it does it flawlessly π
π SYNOPSIS π
here's the vibe, literally copy-paste energy:
use inc::Module::Install;
name 'Example';
all_from 'lib/Example.pm'
authority 'cpan:BOBTFISH';
WriteAll;
(yes the all_from line has no semicolon, that's just how the page has it, don't come for me π)
π¦ DESCRIPTION π¦
okay so here's the tea. if you upload a distribution that has an x_authority key in its META.yml, then PAUSE will hand out firstcome permissions on every package in that dist to the user named by the x_authority key β and it gives the uploader co-maint on top of that. iconic behavior honestly.
now the β¨loreβ¨: traditionally, if you uploaded a dist with A.pm in it, and then you gave someone else comaint, and they uploaded a later release that also included B.pmβ¦ you had a problem. because you, the initial author, have no permissions to release B.pm. like, you built the whole thing and now you're locked out of your own house π not the move.
adding the x_authority key to your distribution fixes this. it makes sure that any subsequent packages uploaded as part of the dist by co-maintainers get their permissions set so that one single person is the canonical source of permissions for the whole dist. one queen, one crown π periodt.
this makes coordination β and maintainance sharing β so much easier for big distributions, or the ones maintained by a whole pool of people. group project, but everyone actually has the right perms for once π«Ά
β METHODS β
π authority ($pause_id)
adds an x_authority key to your META.yml or META.json. that's it. that's the method. she's simple, she's effective, she ate π
π BUGS π
this module should be able to takex_authorityfrom the$AUTHORITYvariable in the'main'module of the dist if present.
(so like, it should but it doesn't yet β noted, logged, on the list π₯²)
π AUTHOR π
Tomas Doran (t0m) <bobtfish@bobtfish.net>
give them their flowers π
π COPYRIGHT π
Copyright (C) 2012 Tomas Doran
π§ LICENSE π§
this software is licensed under the same terms as perl itself. classic, generous, we love to see it.
and that's the whole page bestie!! π this was rendered with perl v5.42.0 and dated 2025-07-25 β go forth and set your authority, mwah πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Module-Install-Authority 0.03-32.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms