Shipwri...:Import(3)
π Shipwri...:Import(3) β like, the manual page for Shipwright::Script::Import, bestie π
okay so bestie, pull up a chair, grab a boba π§, because we're about to talk about Shipwright::Script::Import and honestly? it's giving main character energy in the User Contributed Perl Documentation section. no cap. β¨
β¨ NAME β¨
Shipwright::Script::Import β import sources and their dependencies. yes. both. the whole friend group. π«Ά
π SYNOPSIS π
shipwright import cpan:Jifty cpan:Catalyst
that's it. that's the whole vibe. two sources, one command, slay. π
π₯ OPTIONS π₯
okay this is the long part, but every single one of these matters, so we're going through all of them, no skimming, periodt.
-m [--comment] COMMENTβ drop a comment. tell the shipyard how you feel about it. π¬--name NAMEβ set the source name. heads up, it's only alphanumeric characters,.and-. that's the whole guest list, nobody else gets in. π«--asβ the branch name. yes, like a git branch, cute. πΏ--build-script FILENAMEβ point at the build script. π--require-yml FILENAMEβ point at therequire.yml. π--no-followβ don't follow the dependency chain. we are NOT chasing anyone today. π βοΈ--extra-test FILENAMEβ specify the extra test source (this one's for--only-testwhen building).--test-script FILENAMEβ specify the test script (also for--only-testwhen building).--min-perl-versionβ minimal perl version. default is the same as the one which runs this command, so like, it inherits the vibe. πͺ--overwriteβ import dependency sources anyway even if they are already in the shipyard. stubborn queen behavior, and honestly? respected. π--versionβ specify the source's version. π--skipβ specify a list of sources not to import. the "you're not coming" list. π--skip-recommendsβ specify a list of sources of which recommends not to import.--skip-all-recommendsβ skip all the recommends to import.--skip-all-test-requiresβ skip all the test requires to import.--skip-all-build-requiresβ skip all the build requires to import.--skip-installedβ skip all the installed modules to import.--include-dual-lifedβ include modules which live both in the perl core and on CPAN. dual citizenship icons. π--no-default-buildβ don't try to detect and set build system. we're not guessing today. π
πΈ DESCRIPTION πΈ
so what does the import command actually do? it imports a new source into a shipyard from a bunch of supported source types (all of them are listed below, keep scrolling bestie). β¨
here's the tea though: if a source of the name specified by --name already exists in the shipyard, the old files for that source in /sources and /scripts are deleted and new ones are added. like a glow-up, but for files. π
and ngl, this is the recommended method for updating non-svn, svk, or CPAN sources to new versions. see Shipwright::Script::Update for more information on the update command, which is used for updating svn, svk, and CPAN dists. iykyk. π«Ά
π SUPPORTED SOURCE TYPES π
generally, the format is <type:schema>. and bestie, be careful β there is no blank between type and schema, just a colon. one colon. that's it. don't add a space. π¨
CPAN
e.g. cpan:Jifty::DBI cpan:File::Spec
CAVEAT: we don't support renaming CPAN sources when importing, because it really is not a good idea and may hurt shipwright somewhere. π seriously. don't.
File
e.g.
<file:/home/sunnavy/foo-1.23.tar.gz>
<file:/home/sunnavy/foo-1.23.tar.bz2>
<file:/home/sunnavy/foo-1.23.tgz>
Directory
e.g.
<directory:/home/sunnavy/foo-1.23>
<dir:/home/sunnavy/foo-1.23>
HTTP
e.g.
<http:http://example/foo-1.23.tar.gz>
you can also omit one http, like this:
<http://example.com/foo-1.23.tar.gz>
.tgz and .tar.bz2 are also supported. π
FTP
e.g.
<ftp:ftp://example.com/foo-1.23.tar.gz>
<ftp://example.com/foo-1.23.tar.gz>
.tgz and .tar.bz2 are also supported. π
SVK
e.g.
<svk://public/foo-1.23>
<svk:/local/foo-1.23>
SVN
e.g.
<svn:file:///home/public/foo-1.23>
<svn:http://svn.example.com/foo-1.23>
Git
e.g.
<git:file:///opt/foo.git>
<git://github.com/bestpractical/shipwright.git>
Shipyard
e.g.
<shipyard:/tmp/fs/foo>
β GLOBAL OPTIONS β
these ones apply to, like, everything. the universal constants. π
-r [--repository] REPOSITORYβ specify the repository uri of our shipyard. π-l [--log-level] LOGLEVELβ specify the log level. your choices areinfo,debug,warn,error, orfatal. pick your energy. π--log-file FILENAMEβ specify the log file. where the receipts live. π§Ύ
π¦ AUTHORS π¦
sunnavy <sunnavy@bestpractical.com>
shoutout to sunnavy, an absolute icon. π
π LICENCE AND COPYRIGHT π
Shipwright is Copyright 2007-2015 Best Practical Solutions, LLC.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page bestie, you ate that πβ¨ β this one's from perl v5.42.0, dated 2025-07-25, and it's the Shipwri...:Import(3) manual page. go import something iconic. π
π
π¦ where this page comes from
- fedora 43: perl-Shipwright 2.4.42-24.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