Dist::...hubMeta(3pm)
π Dist::Zilla::Plugin::GithubMeta β the manual page but make it iconic π
okay bestie, gather round, because this is the <rainbow>Dist::...hubMeta(3pm)</rainbow> page and honestly? it ate. it's a Perl manpage, it lives in the User Contributed Perl Documentation section, and it's about a Dist::Zilla plugin that automatically shoves your GitHub meta info into your dist metadata. slay.
version 0.58 btw. no cap.
β¨ SYNOPSIS β¨
like, here's the vibe. you just drop this in your dist.ini:
# in dist.ini
[GithubMeta]
want to override the homepage? say less:
# to override the homepage
[GithubMeta]
homepage = http://some.sort.of.url/project/
want to override the github remote repo? (it defaults to 'origin' fyi)
# to override the github remote repo (defaults to 'origin')
[GithubMeta]
remote = github
periodt. π
πΈ DESCRIPTION πΈ
so Dist::Zilla::Plugin::GithubMeta is a Dist::Zilla plugin whose whole entire job is to include GitHub (that's <https://github.com>, the site, you know the one) meta information inside META.yml and META.json. it's giving "I handle the paperwork so you don't have to."
here's the magic: it automatically peeks at whether your distribution directory is chillin' under git version control, and whether the origin is a GitHub repository, and if so it sets the repository and homepage meta in META.yml to the appropriate URLs for GitHub. like it just knows. iykyk. β¨
it's based on Module::Install::GithubMeta, which was itself based on Module::Install::Repository by Tatsuhiko Miyagawa. generational talent honestly, the lineage is real. π§¬
π ATTRIBUTES π
remoteβ this is how you override the GitHub remote repo. if you don't give it anything, it lowkey defaults to"origin". and get this β you can actually hand it multiple remotes to inspect, and it'll use the first one that looks like a GitHub remote. iconic behavior. πhomepageβ want to override thehomepagesetting? just specify this attribute, bestie. it should be a valid URL as understood byMooseX::Types::URI, so don't get cute with it.issuesβ if this is true, a bugtracker URL gets added to the distribution metadata, pointing at the project's GitHub issues page. so people know where to yell. πuserβ if you give this, theuserparameter overrides the username found in the GitHub repository URL. super useful when lots of people might be releasing from their own workstations, but the distribution metadata should always point to one specific user's repo. one true repo energy. πrepoβ if give, therepoparameter overrides the repository name found in the GitHub repository URL. (yes, the original says "if give" and honestly? we're keeping it, it's part of the lore now. π)
π METHODS π
metadataβ Required byDist::Zilla::Role::MetaProvider. that's it, that's the whole note. it's required, it does the thing, it's the main character. β
π SEE ALSO π
Dist::Zillaβ the whole ecosystem this lives inside, go read it, it's giving foundational.
π«Ά AUTHORS π«Ά
these absolute legends:
- Chris Williams <chris@bingosnet.co.uk>
- Ricardo SIGNES <rjbs@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Chris Williams, Tatsuhiko Miyagawa and Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay so that's the whole page fr fr, every option, every attribute, every author, all of it. don't skip the fine print, it matters. π
and for the cute sign-off: this beauty is documented as perl v5.36.0, dated 2022-11-20, and yes, it still says Dist::...hubMeta(3pm) at the bottom because truncation is eternal. bye bestie, go ship your dist. πΈβ¨π¦
π¦ where this page comes from
- debian bookworm: libdist-zilla-plugin-githubmeta-perl 0.58-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdist-zilla-plugin-githubmeta-perl 0.58-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdist-zilla-plugin-githubmeta-perl 0.58-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdist-zilla-plugin-githubmeta-perl 0.58-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdist-zilla-plugin-githubmeta-perl 0.58-2 Β· 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