v0.01 initial version
v0.01
Alien::Build plugin to download from GitLab
use alienfile; plugin 'Download::GitLab' => ( gitlab_user => 'plicease', gitlab_project => 'dontpanic', );
This plugin is designed for downloading assets from a GitLab instance.
The host to fetch from https://gitlab.com by default.
The user to fetch from.
The project to fetch from.
The asset type to fetch. This must be one of source or link.
source
link
The expected format of the asset. This should be one that Alien::Build::Plugin::Extract::Negotiate understands. The default is tar.gz.
tar.gz
Where to compute the version from. This should be one of tag_name or name. The default is tag_name.
tag_name
name
This is an optional code reference, which can be used to modify the version. For example, if tags have a v prefix you could remove it like so:
v
plugin 'Download::GitLab' => ( gitlab_user => 'plicease', gitlab_project => 'dontpanic', convert_version => sub { my $version = shift; $version =~ s/^v//; return $version; }, );
For link types, this is a regular expression that filters the asset filenames. For example, if there are multiple archive formats provided, you can get just the gzip’d tarball by setting this to qr/\.tar\.gz$/.
qr/\.tar\.gz$/
Graham Ollis plicease@cpan.org
This software is copyright (c) 2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
用于从GitLab下载资源的Perl Alien::Build插件
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Alien::Build::Plugin::Download::GitLab

Alien::Build plugin to download from GitLab
SYNOPSIS
DESCRIPTION
This plugin is designed for downloading assets from a GitLab instance.
PROPERTIES
gitlab_host
The host to fetch from https://gitlab.com by default.
gitlab_user
The user to fetch from.
gitlab_project
The project to fetch from.
type
The asset type to fetch. This must be one of
sourceorlink.format
The expected format of the asset. This should be one that Alien::Build::Plugin::Extract::Negotiate understands. The default is
tar.gz.version_from
Where to compute the version from. This should be one of
tag_nameorname. The default istag_name.convert_version
This is an optional code reference, which can be used to modify the version. For example, if tags have a
vprefix you could remove it like so:link_name
For
linktypes, this is a regular expression that filters the asset filenames. For example, if there are multiple archive formats provided, you can get just the gzip’d tarball by setting this toqr/\.tar\.gz$/.SEE ALSO
AUTHOR
Graham Ollis plicease@cpan.org
COPYRIGHT AND LICENSE
This software is copyright (c) 2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.